pub fn apply_resolution(
energies: &[f64],
spectrum: &[f64],
resolution: &ResolutionFunction,
) -> Result<Vec<f64>, ResolutionError>Expand description
Apply resolution broadening using either Gaussian or tabulated kernel.
ยงErrors
Returns ResolutionError if the energy grid is unsorted or array
lengths do not match.