BivariatePolynomialRegression Method
Computes the polynomial of given degree which best fits the data.
Namespace: Meta.Numerics.StatisticsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
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
- y IReadOnlyListDouble
- The values of the dependent variables (y-coordinates).
- x IReadOnlyListDouble
- The values of the independent variable (x-coordinates).
- m Int32
- The degree, which must be non-negative.
PolynomialRegressionResultThe result of the fit.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).