LeastSquaresSolver class

Uses the least-squares algorithm to fit a polynomial to a set of data.

Constructors

LeastSquaresSolver(List<double> x, List<double> y, List<double> w)
Creates a least-squares solver. [...]

Properties

w List<double>
The weight to use for each data point.
final
x List<double>
The x-coordinates of each data point.
final
y List<double>
The y-coordinates of each data point.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

solve(int degree) PolynomialFit
Fits a polynomial of the given degree to the data points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited