commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "milesandnick (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MATH-1141) UniformIntegerDistribution should make constructer a exclusive bound or made parameter check more relax
Date Thu, 31 Jul 2014 02:27:38 GMT
milesandnick created MATH-1141:
----------------------------------

             Summary: UniformIntegerDistribution should make constructer a exclusive bound
or made parameter check more relax
                 Key: MATH-1141
                 URL: https://issues.apache.org/jira/browse/MATH-1141
             Project: Commons Math
          Issue Type: Bug
            Reporter: milesandnick
            Priority: Minor


UniformIntegerDistribution constructer  public UniformIntegerDistribution(RandomGenerator
rng,
                                      int lower,
                                      int upper) 
the lower and the upper all inclusive. but the parameter check made a   if (lower >= upper)
{
            throw new NumberIsTooLargeException(
                            LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND,
                            lower, upper, false);
check, i think it is too strict
to construct UniformIntegerDistribution (0,0) 
this should make it possible



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message