Click or drag to resize

GlobalCurveFitterFit(IListCurveFitDataSet, IListGlobalFitParameterInfo, Double, TupleDouble, Double) Method

Performs the fit with parameter upper and lower bound constraints to the given datasets. The fitted function must be defined (real-valued) for all x.

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

Parameters

dataSets  IListCurveFitDataSet
Datasets to fit.
parameterInfo  IListGlobalFitParameterInfo
Parameter information.
initialParameters  Double
Initial parameter values. initialParameters[i][j] is the initial value of the ith parameter for the jth data set.
parameterBounds  TupleDouble, Double
Upper and lower bounds for the parameters. This jagged array must parallel the initialParameter array. Specifically, parameterBounds[i][j].Item1 and parameterBounds[i][j].Item2 are the lower and upper for the ith parameter and jth data set. This jagged array must have the same dimensions as initialParameters.

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. Parameter estimates satisfy parameterBounds[i][j].Item1 < p[i][j] > parameterBounds[i][j].Item2
See Also