commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <>
Subject [jira] [Commented] (MATH-834) Replace calls to the various sampling methods in "RandomDataImpl"
Date Thu, 02 Aug 2012 22:49:02 GMT


Phil Steitz commented on MATH-834:

Are these changes really necessary?  RandomData instances can be convenient. I was OK moving
the implementations of the actual sampling methods to the distributions, but I see no reason
that we should not keep RandomData as a means of generating random data from multiple different
distributions.  It is easier to just import one class and use nextXxx methods directly than
to import and instantiate multiple distribution classes in use cases (e.g. AggregateSummaryStatisticsTest)
where random data from different distributions are generated.
> Replace calls to the various sampling methods in "RandomDataImpl"
> -----------------------------------------------------------------
>                 Key: MATH-834
>                 URL:
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.1
> Following MATH-764 and MATH-823, the "authoritative" code that implements sampling from
distributions is located in the class that represents a specific distribution (in package
> Hence, all CM code that performs sampling from a distribution should call the "sample"
method from the corresponding distribution, instead of one of the methods defined in "RandomDataImpl"
(in package "o.a.c.m.random").

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message