[ 
https://issues.apache.org/jira/browse/RNG-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert resolved RNG-194.
------------------------------
    Fix Version/s: 1.8
         Assignee: Alex Herbert
       Resolution: Fixed

Updated in commit:

c6a5e9f686c53c0b9ff620497f82c29e72ba1c7c

> Samplers to validate arguments are finite to avoid invalid samples or 
> infinite loops
> ------------------------------------------------------------------------------------
>
>                 Key: RNG-194
>                 URL: https://issues.apache.org/jira/browse/RNG-194
>             Project: Commons RNG
>          Issue Type: Bug
>          Components: sampling
>    Affects Versions: 1.7
>            Reporter: Alex Herbert
>            Assignee: Alex Herbert
>            Priority: Trivial
>             Fix For: 1.8
>
>
> Many samplers can be constructed with infinite or NaN parameters. This 
> results in invalid samples (Infinite/NaN), constant samples, or infinite 
> loops from the sampling algorithm.
> The following samplers require validation:
> ||Sampler||Parameters||
> |BoxMullerGaussianSampler|mean; standard deviation|
> |ChengBetaSampler|alpha; beta|
> |AhrensDieterMarsagliaTsangGammaSampler|alpha; theta|
> |LogNormalSampler|mu; sigma|
> |LevySampler|location; scale|
> |AhrensDieterExponentialSampler|mean|
> |ZigguratSampler.Exponential|mean|
> |InverseTransformParetoSampler|scale; shape (note that shape can be infinite)|
> |ContinuousUniformSampler|low; high|
> |RejectionInversionZipfSampler|exponent|
> In the case of the ContinuousUniformSampler, use of an infinite bound and the 
> open-interval sampler will result in an infinite loop.
> In the case of the RejectionInversionZipfSampler, use of an infinite exponent 
> will result in an infinite loop.
> Issue identified using a security scan.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to