PeakFittingByIncrementalPeakAdditionPrunePeaksBasedOnSumChiSquare Method |
Prunes peaks based on the chi-square sum.
Namespace: Altaxo.Science.Spectroscopy.PeakFittingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static (bool wasPruned, IFitFunctionPeak fitFunction, double[] , bool[] ) PrunePeaksBasedOnSumChiSquare(
double prunePeaksSumChiSquareFactor,
double[] xArray,
double[] yArray,
IFitFunctionPeak fitFunction,
double[] previousGuess,
bool[] isFixedByUserOrBoundaries,
int numberOfParametersPerTerm
)
Parameters
- prunePeaksSumChiSquareFactor Double
-
The factor that determines how many peaks are pruned.
Peaks are pruned as long as newChi² < oldChi² × (1 + prunePeaksSumChiSquareFactor).
- xArray Double
- The x array.
- yArray Double
- The y array.
- fitFunction IFitFunctionPeak
- The fit function.
- previousGuess Double
- The fit function's parameters.
- isFixedByUserOrBoundaries Boolean
- Outcome of the fit that designates which parameters are fixed by the user or by boundary conditions.
- numberOfParametersPerTerm Int32
- The number of parameters per peak.
Return Value
ValueTupleBoolean,
IFitFunctionPeak,
Double,
Boolean
A value indicating whether peaks were pruned, the new fit function, the new parameter set, and the new array of fixed parameters.
See Also