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.

read-only
x List<double>

The x-coordinates of each data point.

read-only
y List<double>

The y-coordinates of each data point.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

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