fit library

Functions

correlationCoefficient(List<DataPoint> p) double
Returns the correlation coefficient for sample data.
func1(List<DataPoint> p, double f(double)) double
Fits y = a*f(x) to sample data.
func3(List<DataPoint> p, double f0(double), double f1(double), double f2(double)) → ({double a, double b, double c})
Fits y = af0(x) + bf1(x) + c*f2(x) to sample data.
linear(List<DataPoint> p) → ({double a, double b})
Fits a line y = ax + b to sample data.
quadratic(List<DataPoint> p) → ({double a, double b, double c})
Fits y = ax^2 + bx + c to sample data.

Typedefs

DataPoint = ({double x, double y})
A data point for curve fitting.