IPeakFittingExecute Method |
Executes the normalization algorithm.
Namespace: Altaxo.Science.Spectroscopy.PeakFittingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax (double[] , double[] , int[] , IReadOnlyList<(IReadOnlyList<PeakDescription> , int , int )>? peakFittingResults) Execute(
double[] x,
double[] y,
int[]? regions,
IReadOnlyList<(IReadOnlyList<PeakDescription> PeakDescriptions, int StartOfRegion, int EndOfRegion)> peakDescriptions,
CancellationToken cancellationToken
)
Parameters
- x Double
- The array of x-values.
- y Double
- The array of y-values.
- regions Int32
- The spectral regions. Can be null (if the array is one region). Each element in this array
is the start index of a new spectral region.
- peakDescriptions IReadOnlyListValueTupleIReadOnlyListPeakDescription, Int32, Int32
- Description of the peaks (output of peak searching algorithms, see IPeakSearching).
- cancellationToken CancellationToken
- Token used to cancel this task.
Return Value
ValueTupleDouble,
Double,
Int32,
IReadOnlyListValueTupleIReadOnlyListPeakDescription,
Int32,
Int32The results of the peak fitting. For each spectral regions, a tuple of the peak descriptions in that range, together
with the start and end index (exclusive) of that range is returned. Please note that the peak descriptions
contain position indices that are relative to the corresponding range (thus not to the underlying spectral array).
See Also