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: 4.1.4
Syntax
public NonlinearRegressionResult NonlinearRegression(
	Func<IReadOnlyList<double>, double, double> f,
	IReadOnlyList<double> start
)

Parameters

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

Return Value

Type: NonlinearRegressionResult
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