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.
OptionalmaxMaximum number of peaks included in a single optimization group. When a group exceeds this size, it is recursively split.
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.