Click or drag to resize

BivariateNonlinearRegression Method (IReadOnlyListDouble, IReadOnlyListDouble, FuncIReadOnlyDictionaryString, Double, Double, Double, IReadOnlyDictionaryString, Double)

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 static NonlinearRegressionResult NonlinearRegression(
	this IReadOnlyList<double> y,
	IReadOnlyList<double> x,
	Func<IReadOnlyDictionary<string, double>, double, double> function,
	IReadOnlyDictionary<string, double> start
)

Parameters

y
Type: System.Collections.GenericIReadOnlyListDouble
The abscissa values.
x
Type: System.Collections.GenericIReadOnlyListDouble
The ordinate values.
function
Type: SystemFuncIReadOnlyDictionaryString, Double, Double, Double
The parameterized function.
start
Type: System.Collections.GenericIReadOnlyDictionaryString, Double
An initial guess for the parameters.

Return Value

Type: NonlinearRegressionResult
The fit result.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyListDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionx or y or function or start is .
DimensionMismatchExceptionThe sizes of x and y do not match.
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.
See Also