LeastSquaresSolver class
Uses the least-squares algorithm to fit a polynomial to a set of data.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
solve(
int degree) → PolynomialFit? - Fits a polynomial of the given degree to the data points.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited