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 value using different distributions #26

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

phimage
Copy link
Collaborator

@phimage phimage commented Oct 25, 2016

a RandomDistribution enum to describe the type of distribution

  • a protocol RandomDistribuable implemented by Double and Float
  • functions to generate random values using specific distributions

a DiscreteRandomDistribution enum to describe the type of discrete distribution

  • a protocol DiscreteRandomDistribuable implemented by Int and a type to generate probability BernoulliProbability implemented by Double
  • functions to generate random values using specific discrete distributions

Unit tests

  • assert on well known mean and/or variances

@nvzqz
Copy link
Owner

nvzqz commented Oct 25, 2016

Because Foundation is available for Linux, can you please use Foundation imports rather than Darwin and Glibc.

@nvzqz nvzqz merged commit c6a8532 into nvzqz:master Oct 26, 2016
@phimage
Copy link
Collaborator Author

phimage commented Oct 26, 2016

I have done it except in new class in unit test
but test could be launched also on linux so I must change that

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

Successfully merging this pull request may close these issues.

2 participants