OptionalfactorOptionalfromRange over which the optimization is applied. Values default to
firstPeak.x - firstPeak.width * factorLimits and
lastPeak.x + lastPeak.width * factorLimits when omitted.
OptionalgroupingMultiplier applied to peak widths when deciding whether adjacent peaks should be grouped and optimized together.
OptionaloptimizationKind and options of the algorithm used to optimize parameters.
OptionalparametersPer-parameter optimization options (for example x, y, fwhm, mu),
allowing custom init/min/max/gradientDifference values.
This follows the same structure as ml-spectra-fitting OptimizeOptions.parameters.
OptionalshapeShape to use for optimization.
Width multiplier used to derive the default
from/tobounds.