| GlobalCurveFitterFit(IListCurveFitDataSet, IListGlobalFitParameterInfo) Method |
Performs the fit with the given datasets and parameter information. An
initial value of zero is used for all parameters. The fitted function must
be defined (real-valued) for all x when all parameters are zero. If not
you must specify initial parameter values where the function is defined.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public double[][] Fit(
IList<CurveFitDataSet> dataSets,
IList<GlobalFitParameterInfo> parameterInfo
)
Public Function Fit (
dataSets As IList(Of CurveFitDataSet),
parameterInfo As IList(Of GlobalFitParameterInfo)
) As Double()()
public:
array<array<double>^>^ Fit(
IList<CurveFitDataSet^>^ dataSets,
IList<GlobalFitParameterInfo^>^ parameterInfo
)
member Fit :
dataSets : IList<CurveFitDataSet> *
parameterInfo : IList<GlobalFitParameterInfo> -> float[][]
Parameters
- dataSets IListCurveFitDataSet
- Datasets to fit.
- parameterInfo IListGlobalFitParameterInfo
- Parameter information.
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