mscore::algorithm::utility

Function calculate_abundance_gaussian

Source
pub fn calculate_abundance_gaussian(
    time_map: &HashMap<i32, f64>,
    occurrences: &[i32],
    mean: f64,
    sigma: f64,
    cycle_length: f64,
) -> Vec<f64>
Expand description

Compute the abundance in each occurrence frame by looking at the probability of Normal(mean, sigma) within [time - rt_cycle_length, time].