commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (Commented) (JIRA)" <>
Subject [jira] [Commented] (MATH-703) Splitting up the distribution hierarchy
Date Fri, 25 Nov 2011 21:49:39 GMT


Phil Steitz commented on MATH-703:

I would say yes to removing toRealDistribution.  I may be missing a range of practical use
cases for this, though.  How might the need for this arise in applications?  I am also +1
for merging *Default* into the children.  

I agree with Sebastian's first point.  Lets drop the caching support in the parent for the
characteristics.  While we have agreed within [math] that our distributions should be immutable,
there is no guarantee that someone else might not want to implement a mutable one.

Sebastien's second point is what I mean be merging the *Default* into the children.

With those changes, I am +1 to applying the patch.  THANKS!
> Splitting up the distribution hierarchy
> ---------------------------------------
>                 Key: MATH-703
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Christian Winter
>            Priority: Minor
>         Attachments:
> As discussed on the mailing list (,
the distribution interfaces should be restructured.
> The most important point is to create one root interface for each domain. There should
*not* be a common super-interace because different domains require different functionality.
Additionally, a super-inferface would require to parametrize the domain which makes things
more complicated (e.g., "double" would have to be replaced by "Double"). Currently, Commons
Math supports distributions with real domain and distributions with integer domain. Thus there
will be the interfaces RealDistribution and IntegerDistribution.
> Another point is to drop the special cases of distributions with real domain in order
to simplify the structure. There won't be an interface for absolutely continuous distributions,
and there won't be an interface for discrete distributions on the real domain. All the functionality
required by the special cases can be defined in RealDistribution.

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