tof_dataclasses::analysis

Function integrate

Source
pub fn integrate(
    voltages: &Vec<f32>,
    nanoseconds: &Vec<f32>,
    lo_bin: usize,
    upper_bin: usize,
    impedance: f32,
) -> Result<f32, WaveformError>
Expand description

Integrate a waveform

That this works right, prior to the integration we should subtract the baseline.

ยงArguments:

  • impedance : typically this is