mscore::algorithm::isotope

Function lam

Source
pub fn lam(mass: f64, slope: f64, intercept: f64) -> f64
Expand description

calculate the lambda value for a given mass

Arguments:

  • mass - mass of the peptide
  • slope - slope of the linear regression
  • intercept - intercept of the linear regression

Returns:

  • f64 - lambda value

ยงExamples

use mscore::algorithm::isotope::lam;

let lambda = lam(1000.0, 0.000594, -0.03091);
assert_eq!(lambda, 0.56309);