You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2014/08/04 13:22:11 UTC
[jira] [Commented] (MATH-1141) UniformIntegerDistribution should
make constructer a exclusive bound or made parameter check more relax
[ https://issues.apache.org/jira/browse/MATH-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084544#comment-14084544 ]
Gilles commented on MATH-1141:
------------------------------
bq. construct UniformIntegerDistribution (0,0)
Why should this be allowed?
> 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)