-
Notifications
You must be signed in to change notification settings - Fork 423
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
Conversation
BigCrunsh
commented
Jul 9, 2014
- add support
- add mode, skewness, kurtosis
- add tests
This seems to be stuck on a file not found error. |
Yes... Forgot the testfile 🐤 Thx. |
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] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thx.
@lindahua: Which documents do you mean? |
- add support - add mode, skewness, kurtosis - add tests
I just noticed that you have already add an entry to |
Add functions for the hypergeometric distribution