pub fn live_fractions(
counts: ArrayView3<'_, f64>,
edges_us: &[f64],
shutters: &[Shutter],
) -> Result<Array3<f64>, IoError>Expand description
Live fractions of each pixel in each bin, by the counts before it in its shutter.
shutters[i].triggers should count the pulses that reached the detector
while shutter i was open; triggers without beam make L too large.
§Arguments
counts— Raw counts in (time bin, row, column), finite and 0 or more.edges_us— Time-bin edges in µs, ascending, one more than the bins.shutters— The run’s shutters; each bin starts inside one and ends by the next.
§Returns
L in (time bin, row, column), each in (0, 1].
§Errors
IoError::ShapeMismatch if counts is empty or edges_us does not fit it;
IoError::InvalidParameter if a count is invalid, a bin starts outside
every shutter or ends after the next opens, shutters overlap, or a pixel’s
counts in a shutter reach its triggers.