PolynomialRegression class

Polynomial least-squares regression, in which the relationship between the independent elements xs and the dependent elements ys is modelled as a polynomial of a given degree.

See https://en.wikipedia.org/wiki/Polynomial_regression.

Inheritance

Constructors

PolynomialRegression({required int degree})
Constructs a polynomial least-squares regression model.

Properties

degree int
The desired degree of the fitted polynomial.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fit({required Vector<double> xs, required Vector<double> ys}) PolynomialRegressionResult
Fits a list of data points to the configured model.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited