Skip to main content

broadened_cross_sections_from_base_on_working_grid

Function broadened_cross_sections_from_base_on_working_grid 

Source
pub fn broadened_cross_sections_from_base_on_working_grid(
    energies: &[f64],
    base_xs: &[Vec<f64>],
    resonance_data: &[ResonanceData],
    temperature_k: f64,
    instrument: Option<&InstrumentParams>,
) -> Result<WorkingGridXs, TransmissionError>
Expand description

Like broadened_cross_sections_from_base but returns the Doppler-broadened σ on the working grid (auxiliary extended grid when Gaussian resolution is active, else the data grid) together with the WorkingGridLayout.

This is the building block the LM fit’s cached / precomputed paths use to apply resolution broadening on the working grid and extract the data points last — matching forward_model (issue #608). Resolution is NOT applied (issue #442).