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

Add functions for the hypergeometric distribution #256

Merged
merged 1 commit into from
Jul 19, 2014

Conversation

BigCrunsh
Copy link
Contributor

  • add support
  • add mode, skewness, kurtosis
  • add tests

@johnmyleswhite
Copy link
Member

This seems to be stuck on a file not found error.

@BigCrunsh
Copy link
Contributor Author

Yes... Forgot the testfile 🐤 Thx.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 1a5a3fd on BigCrunsh:extend_hypergeo into cf5728b on JuliaStats:master.

@lindahua
Copy link
Contributor

Would you please add the documents?


function modes(d::Hypergeometric)
if (d.ns == d.nf) && mod(d.n, 2) == 1
[(d.n-1)/2 (d.n+1)/2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[x y] returns a 2x1 matrix, you should use [x, y] which will return a vector.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thx.

@BigCrunsh
Copy link
Contributor Author

@lindahua: Which documents do you mean?

- add support
- add mode, skewness, kurtosis
- add tests
@lindahua
Copy link
Contributor

I just noticed that you have already add an entry to univariates.rst. Ignore my comments about the documents.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 79499a7 on BigCrunsh:extend_hypergeo into cf5728b on JuliaStats:master.

lindahua added a commit that referenced this pull request Jul 19, 2014
Add functions for the hypergeometric distribution
@lindahua lindahua merged commit 2b6f6d7 into JuliaStats:master Jul 19, 2014
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.

5 participants