pub fn resolution_working_grid(
energies: &[f64],
instrument: Option<&InstrumentParams>,
resonance_data: &[&ResonanceData],
) -> Result<WorkingGridLayout, TransmissionError>Expand description
Compute the working-grid layout for (energies, instrument, resonance_data).
With a resolution function the grid is extended past both ends by the
kernel’s reach (ResolutionFunction::grid_bounds_ev), and a Gaussian
also gets the intermediate points and resonance fine structure. Without
one the data grid comes back with identity indices.
resonance_data may be empty (e.g. the energy-scale model has no resonance
data of its own); the auxiliary grid then carries boundary extension only,
with no resonance fine-structure densification.
§Errors
TransmissionError::Resolution— ifinstrumentisSomeandenergiesis not sorted ascending.