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).
Returns the auxiliary extended grid (boundary extension + resonance
fine-structure) when a Gaussian resolution function is active, otherwise the
data grid with identity indices. Fitting models use this to apply
resolution on the same working grid forward_model uses and extract the
data points last (issue #608).
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.