pub fn py_cfd_simple<'_py>(
voltages: Bound<'_py, PyArray1<f32>>,
nanoseconds: Bound<'_py, PyArray1<f32>>,
cfd_frac: f32,
start_peak: usize,
end_peak: usize,
) -> PyResult<f32>
Expand description
Find the peak onset time based on a cfd “Constant fraction discrimination” algorithm
§Arguments
- start_peak : bin
- end_peak : bin
- cfd_frac : 0.2 is the typical default