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 peptideslope
- slope of the linear regressionintercept
- 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);