Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added linear regression #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

gw111zz
Copy link

@gw111zz gw111zz commented Nov 20, 2011

I've added linear regression and the corresponding RSpec to stats. In case you want to take my changes, here's the pull request.

- change the linear regression function to return a Hash instead of an
  Array
- consistent use of reduce

Also extra check for bad input from user
@gw111zz
Copy link
Author

gw111zz commented Nov 26, 2011

Yes, I agree. In the latest commit, I've changed instances of inject to reduce and am returning a map from the linear regression function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants