Skip to main content

combine_echoes

Function combine_echoes 

Source
pub(crate) fn combine_echoes<E>(
    phases: &[&[f64]],
    magnitudes: &[&[f64]],
    tes: &[f64],
    n: usize,
    weighting: IqsmEchoWeighting,
    echo: impl FnMut(&[f64], f64) -> Result<Vec<f64>, E>,
) -> Result<Vec<f64>, E>
Expand description

Reconstruct each echo with echo(phase, te) and combine them with weighting’s weights.