PeakFittingTogetherGetPeakDescriptionList Method |
Creates the list of fitted peaks from the global fit result.
Namespace: Altaxo.Science.Spectroscopy.PeakFittingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxprotected virtual List<PeakDescription> GetPeakDescriptionList(
double[] xArray,
double[] yArray,
IEnumerable<PeakDescription> peakDescriptions,
IFitFunctionPeak fitFunc,
int numberOfParametersPerPeak,
Dictionary<PeakDescription, PeakDescription> dictionaryOfNotFittedPeaks,
List<(int FirstPoint, int LastPoint, double maximalXDistanceLocal, double minimalXValue, double maximalXValue, PeakDescription Description)> peakParam,
IReadOnlyList<double?>? lowerBounds,
IReadOnlyList<double?>? upperBounds,
QuickNonlinearRegression fit,
NonlinearMinimizationResult globalFitResult,
CancellationToken cancellationToken
)
Parameters
- xArray Double
- The x-values for the region that was fitted.
- yArray Double
- The y-values for the region that was fitted.
- peakDescriptions IEnumerablePeakDescription
- The peaks that were requested to be fitted.
- fitFunc IFitFunctionPeak
- The composite fit function used for fitting.
- numberOfParametersPerPeak Int32
- The number of parameters per single-peak term.
- dictionaryOfNotFittedPeaks DictionaryPeakDescription, PeakDescription
- Peaks that could not be fitted and should be included in the result.
- peakParam ListValueTupleInt32, Int32, Double, Double, Double, PeakDescription
- Per-peak metadata (fit ranges and local x-spacing) used during fitting.
- lowerBounds IReadOnlyListNullableDouble
- Optional per-parameter lower bounds used for fitting.
- upperBounds IReadOnlyListNullableDouble
- Optional per-parameter upper bounds used for fitting.
- fit QuickNonlinearRegression
- The regression engine that performed the fit.
- globalFitResult NonlinearMinimizationResult
- The global fit result.
- cancellationToken CancellationToken
- Token used to cancel this task.
Return Value
ListPeakDescriptionThe list of per-peak fit results.
See Also