method

fit_error

fit_error(xys)
public

Takes an array of x/y pairs and calculates the general R^2 value.

See: http://en.wikipedia.org/wiki/Coefficient_of_determination