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
)
<ExtensionAttribute>
Public Shared Function NonlinearRegression (
y As IReadOnlyList(Of Double),
x As IReadOnlyList(Of Double),
function As Func(Of IReadOnlyDictionary(Of String, Double), Double, Double),
start As IReadOnlyDictionary(Of String, Double)
) As NonlinearRegressionResult
public:
[ExtensionAttribute]
static NonlinearRegressionResult^ NonlinearRegression(
IReadOnlyList<double>^ y,
IReadOnlyList<double>^ x,
Func<IReadOnlyDictionary<String^, double>^, double, double>^ function,
IReadOnlyDictionary<String^, double>^ start
)
[<ExtensionAttribute>]
static member NonlinearRegression :
y : IReadOnlyList<float> *
x : IReadOnlyList<float> *
function : Func<IReadOnlyDictionary<string, float>, float, float> *
start : IReadOnlyDictionary<string, float> -> NonlinearRegressionResult
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:
NonlinearRegressionResultThe 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 See Also