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

Generate random samples #72

Closed
jiayihu opened this issue Mar 4, 2021 · 1 comment
Closed

Generate random samples #72

jiayihu opened this issue Mar 4, 2021 · 1 comment
Projects

Comments

@jiayihu
Copy link
Owner

jiayihu commented Mar 4, 2021

Generate random samples of the rainfall and flow distributions on the embedded board.

@jiayihu jiayihu added this to In progress in Agenda Mar 4, 2021
@jiayihu jiayihu mentioned this issue Mar 4, 2021
@jiayihu
Copy link
Owner Author

jiayihu commented Mar 4, 2021

Generating samples from normal distribution was not possible because of missing f64 functions required by rand_distr rust-random/rand#1088.

Solved for now by using rand, which as better no_std support. Samples from normal distribution are generated by using the standard distribution built in rand and reversing the z-formula.

@jiayihu jiayihu closed this as completed Mar 4, 2021
Agenda automation moved this from In progress to Closed this week Mar 4, 2021
@jiayihu jiayihu moved this from Closed this week to Closed in Agenda Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Agenda
Closed
Development

No branches or pull requests

1 participant