pub fn cfd_simple(
voltages: &Vec<f32>,
nanoseconds: &Vec<f32>,
cfd_frac: f32,
start_peak: usize,
end_peak: usize,
) -> Result<f32, WaveformError>
Expand description
Find the onset time of a peak with a constant fraction discrimination method.
The peaks have to be sane FIXME: Maybe introduce a separate check?