LeastSquaresSolver(List<double> x, List<double> y, List<double> w)

Creates a least-squares solver.

The x, y, and w arguments must not be null.

Source

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