OptionalbaselineOptionalgeneratorOptions for the spectrum generator grid.
OptionalpeakOptions for peak shapes and widths.
OptionalthresholdThreshold relative to the normalized shape value (1 at peak centre) used
to determine how far each peak's x interval extends. Points where
shape.fct(x − x₀) < threshold are excluded.
Function to add a baseline to the spectrum.