Closed carlosgmartin closed 2 years ago
Thanks - I think we would be happy to accept a contribution of this function to jax.random
. Are you interested in putting together a pull request?
@jakevdp Sure. Since #10876 depends on this one, should I submit a PR for this one first, or one PR for both simultaneously?
You can do a single PR for both, if that's easier
@jakevdp Do you think jax.scipy.gennorm.pdf
/logpdf
/cdf
should be added as well?
Sure, I think that would be a useful contribution - thanks!
Add a function that samples from the generalized normal distribution. (See scipy.stats.gennorm.) Example implementation: