You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "milesandnick (JIRA)" <ji...@apache.org> on 2014/07/31 04:27:38 UTC

[jira] [Created] (MATH-1141) UniformIntegerDistribution should make constructer a exclusive bound or made parameter check more relax

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)