cjekel / piecewise_linear_fit_py

fit piecewise linear data for a specified number of line segments
MIT License
289 stars 59 forks source link

add Rsqaured value #11

Closed cjekel closed 5 years ago

cjekel commented 5 years ago

I should either calculated the R^2 value for each fit, or create a function that returns the R^2 value for a given fit.

The R^2 example is given here: https://github.com/cjekel/piecewise_linear_fit_py/commit/c25e5b383f8db66fe549ecf7ff9b1645bd953137

cjekel commented 5 years ago

Added R^2 function in https://github.com/cjekel/piecewise_linear_fit_py/commit/834810458cd0aa480556d1149932bb212ffc7ad6