BivariatePolynomialRegression Method |
Computes the polynomial of given degree which best fits the data.
Namespace:
Meta.Numerics.Statistics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static PolynomialRegressionResult PolynomialRegression(
this IReadOnlyList<double> y,
IReadOnlyList<double> x,
int m
)
<ExtensionAttribute>
Public Shared Function PolynomialRegression (
y As IReadOnlyList(Of Double),
x As IReadOnlyList(Of Double),
m As Integer
) As PolynomialRegressionResult
public:
[ExtensionAttribute]
static PolynomialRegressionResult^ PolynomialRegression(
IReadOnlyList<double>^ y,
IReadOnlyList<double>^ x,
int m
)
[<ExtensionAttribute>]
static member PolynomialRegression :
y : IReadOnlyList<float> *
x : IReadOnlyList<float> *
m : int -> PolynomialRegressionResult
Parameters
- y
- Type: System.Collections.GenericIReadOnlyListDouble
The values of the dependent variables (y-coordinates). - x
- Type: System.Collections.GenericIReadOnlyListDouble
The values of the independent variable (x-coordinates). - m
- Type: SystemInt32
The degree, which must be non-negative.
Return Value
Type:
PolynomialRegressionResultThe result of the fit.
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