Click or drag to resize

GlobalCurveFitterFit(IListCurveFitDataSet, IListGlobalFitParameterInfo, Double) Method

Performs the fit with the given datasets and parameter information and starting with the given set of initial parameter values. The fitted function must be defined (real-valued) for all x with the initial parameter values.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public double[][] Fit(
	IList<CurveFitDataSet> dataSets,
	IList<GlobalFitParameterInfo> parameterInfo,
	double[][] initialParameters
)

Parameters

dataSets  IListCurveFitDataSet
Datasets to fit.
parameterInfo  IListGlobalFitParameterInfo
Parameter information.
initialParameters  Double
Initial parameter values.

Return Value

Double
Parameter estimates as a jagged array of doubles. Note that we will get one parameter estimate for each shared parameter and N parameter estimates for each non-shared parameter, where N is the number of data sets. For example, p[i][j] is the value of the ith parameter for the jth data set. If the ith parameter is shared only the index j = 0 will be valid since we have only one parameter value. If the ith parameter is shared between the N data sets then indices j = 0, 1,..., N-1 are valid. For example: p[i][0] - value for the ith parameter if shared. p[i][0], p[i][1],..., p[i][N-1] - values for the ith non-shared parameter for data sets 0, 1,..., N-1.
See Also