LeastSquaresSolver constructor

LeastSquaresSolver(
  1. List<double> x,
  2. List<double> y,
  3. List<double> w
)

Creates a least-squares solver.

Implementation

LeastSquaresSolver(this.x, this.y, this.w)
  : assert(x.length == y.length),
    assert(y.length == w.length);