|
PolynomialRegressionFromData Method
|
Creates a new polynomial regression directly from data points.
Namespace:
Accord.Statistics.Models.Regression.Linear
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static PolynomialRegression FromData(
int degree,
double[] x,
double[] y
)
Public Shared Function FromData (
degree As Integer,
x As Double(),
y As Double()
) As PolynomialRegression
Request Example
View SourceParameters
- degree
- Type: SystemInt32
The polynomial degree to use. - x
- Type: SystemDouble
The input vectors x. - y
- Type: SystemDouble
The output vectors y.
Return Value
Type:
PolynomialRegressionA polynomial regression f(x) that most approximates y.
See Also