You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by GitBox <gi...@apache.org> on 2019/02/17 22:13:35 UTC

[GitHub] aherbert opened a new pull request #21: RNG-71: Validate parameters for the distribution samplers

aherbert opened a new pull request #21: RNG-71: Validate parameters for the distribution samplers
URL: https://github.com/apache/commons-rng/pull/21
 
 
   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](https://en.wikipedia.org/wiki/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 is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org