Click or drag to resize

PeakFittingByIncrementalPeakAdditionPrunePeaksBasedOnSumChiSquare Method

Prunes the peaks based on the Sum of Chi².

Namespace: Altaxo.Science.Spectroscopy.PeakFitting
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public 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² x (1+prunePeaksSumChiSquareFactor).
xArray  Double
The x array.
yArray  Double
The y array.
fitFunction  IFitFunctionPeak
The fit function.
previousGuess  Double
The fit function's parameter.
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 that is true if peaks were pruned, the new fit function, the new parameter set, and the new array of fixed parameters.
See Also