Skip to content

jhorwit2/simple-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-regression

Ordinary Least Squares Linear Regression implementation in Go

This implementation is a direct port of the C++ implementation found [here](from http://www.johndcook.com/running_regression.html)

Install

go get github.com/jhorwit2/simple-regression

Usage

r := linear.NewRegression()
r.Push(0, 0)
r.Push(1, 5)
r.Push(2, 10)
y := r.Predict(5)

About

Ordinary Least Squares Linear Regression implementation in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages