-
Notifications
You must be signed in to change notification settings - Fork 103
Adds Wishart and InverseWishart distributions
#170
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
base: master
Are you sure you want to change the base?
Conversation
…and its log variant `mvlgamma`
…hart distribution implementation
…hart distribution implementation
… pseudo inverse doesn't do this due to approximation
|
Thanks for contributing, I do want to introduce this, but after release 0.17 since we're hoping to get more feedback on the multivariate API, see #209, and this should match what have there. |
|
Thanks! Sounds good. I am keeping an eye on it. Let me know if any changes need to be made. |
|
#209 is merged, Modifications to match are mostly in the pattern of choosing |
| let s = w.sample(rng); | ||
|
|
||
| s.cholesky().unwrap().inverse().symmetric_part() | ||
| } |
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.
Would you consider implementing sample_iter to rely on a single conversion to Wishart to obtain multiple samples?
This pr adds
WishartandInverseWishartdistributions along with multivariate gamma functionsmvgammaandmvlgamma.mathnet implementations were used as a reference: Wishart and Inverse Wishart
The Distributions.jl Julia package was used to create the testcases and as a cross-reference.
Thanks
Edit: Sorry for creating a duplicate pr. I have closed the previous one.