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

RNG-71: Validate parameters for the distribution samplers #21

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

aherbert
Copy link
Contributor

This adds checks matching those found in the commons-math3 distributions
to the samplers. An additional check missing in commons-math3 was added to the LogNormalSampler to ensure the mean (scale) parameter was positive. I am unsure why this check is missing in CM as it is defined here Log-normal_distribution.

The existing validation checks in the PoissonSampler
have had their exception messages changed for consistency across all the samplers.

A test for
the ContinuousUniformSampler was added to demonstrate no range checks
are required.

This adds checks matching those found in the commons-math3 distributions
to the samplers. The existing validation checks in the PoissonSampler
have had their exception messages changed for consistency. A test for
the ContinuousUniformSampler was added to demonstrate no range checks
are required.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.778% when pulling 634ec03 on aherbert:improvement-RNG-71 into 485961a on apache:master.

@asfgit asfgit merged commit 634ec03 into apache:master Feb 25, 2019
asfgit pushed a commit that referenced this pull request Feb 25, 2019
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.

3 participants