2D Linear Regression in Haskell
Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
lreg.hs

README.md

lReg

2D Linear Regression in Haskell

*Prediction> lReg 63 [(60,3.1), (61,3.6), (62, 3.8), (63, 4), (65, 4.1)]
3.8702702702702663

*Prediction> lReg 3 [(1,10), (2,20), (3.0,30.0)]
30.0

*Prediction> lReg 100 [(1,10), (2,20), (3.0,30.0)]
1000.0

*Prediction> lReg 500 [(1,10), (2,20), (3.0,30.0)]
5000.0

*Prediction> lReg 5 [(1,10), (2,20), (3.0,30.0)]
50.0