method

fit_error

v1_9_3_125 - Show latest stable - Class: MiniTest::Unit::TestCase
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