Click or drag to resize

RelaxISPlugin_MultifitModelFitFunction Method

The actual model function used for fitting.

Namespace: RelaxIS_SDK.Plugins
Assembly: RelaxIS SDK (in RelaxIS SDK.dll) Version: 3.0.23.63
Syntax
public abstract Complex FitFunction(
	double[] X,
	double[] Parameters
)

Parameters

X  Double
An array of independent parameters, where index 0 always contains the frequency of the datapoint, index 1 contains the index of the spectrum (round to Integer), and further values are the RequiredMetadata values in order
Parameters  Double
The fit parameters, with the shared parameters first, followed by the sets of individual parameters.

Return Value

Complex
A tuple containing the real part of the result as Item1 and the imaginary part as Item2.
Remarks
If each spectrum has the same number of individual parameters, you may use the GetIndividualParameterIndex(Int32, Int32, Int32, Int32) function to find the index of a specific spectrum's individual parameter.
See Also