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

Question: Sampling from Normal distribution #63

Open
elbek opened this issue Apr 10, 2021 · 1 comment
Open

Question: Sampling from Normal distribution #63

elbek opened this issue Apr 10, 2021 · 1 comment

Comments

@elbek
Copy link

elbek commented Apr 10, 2021

How one would sample from norma distribution using this package?

Thanks in advance.

@rvchess
Copy link
Contributor

rvchess commented Jun 14, 2021

There are two functions in norm.go that allow you to either use the inverse ppf function or Box muller transform to generate random samples from normal distributions. Look for "NormBoxMullerRvs" and "NormPpfRvs" thanks!

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

No branches or pull requests

2 participants