commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MATH-1011) Change implementation of "UniformIntegerDistribution.sample()"
Date Sat, 10 Aug 2013 00:21:47 GMT

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

Gilles resolved MATH-1011.
--------------------------

    Resolution: Fixed
    
> Change implementation of "UniformIntegerDistribution.sample()"
> --------------------------------------------------------------
>
>                 Key: MATH-1011
>                 URL: https://issues.apache.org/jira/browse/MATH-1011
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Gilles
>            Priority: Trivial
>             Fix For: 3.3
>
>
> The classes {{RandomDataGenerator}} and {{UniformIntegerDistribution}} use different
codes for providing random integers in a range.
> The version from {{RandomDataGenerator}} should be moved to the "sample()" method of
{{UniformIntegerDistribution}} (cf. this [post|http://markmail.org/message/b23c57ze62wtiktt]).
> Then, {{RandomDataGenerator}} could eventually call that method in order to avoid code
duplication.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message