Click or drag to resize
Accord.NET (logo)

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.7.0
Syntax
public static PolynomialRegression FromData(
	int degree,
	double[] x,
	double[] y
)
Request Example View Source

Parameters

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: PolynomialRegression
A polynomial regression f(x) that most approximates y.
See Also