Click or drag to resize
BivariateSampleNonlinearRegression Method
Finds the parameterized function that best fits the data.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public FitResult NonlinearRegression(
	Func<IList<double>, double, double> f,
	IList<double> start
)

Parameters

f
Type: SystemFuncIListDouble, Double, Double
The parameterized function.
start
Type: System.Collections.GenericIListDouble
An initial guess for the parameters.

Return Value

Type: FitResult
The fit result.
Exceptions
ExceptionCondition
ArgumentNullExceptionf or start is null.
InsufficientDataExceptionThere are not more data points than fit parameters.
DivideByZeroExceptionThe curvature matrix is singular, indicating that the data is independent of one or more parameters, or that two or more parameters are linearly dependent.
Remarks

In the returned FitResult, the parameters appear in the same order as in the supplied fit function and initial guess vector. No goodness-of-fit test is returned.

See Also