commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Winter (Commented) (JIRA)" <>
Subject [jira] [Commented] (MATH-703) Splitting up the distribution hierarchy
Date Sun, 27 Nov 2011 18:43:39 GMT


Christian Winter commented on MATH-703:

Thanks for the comments. I'm going to prepare a new patch based on them. I appreciate removing
the caching support for mean and variance (thanks for the point with mutable distributions)
as well as the method {{toRealDistribution()}}. When preparing the first version of the patch,
I just wanted to retain the old code/functionality in some form in order to have a discussion
basis which doesn't drop anything tacitly.
I will move "Default" to its children as there are two votes for it. I don't have a preference
on another possibility (keeping "Default" or moving it to the parents).
> Splitting up the distribution hierarchy
> ---------------------------------------
>                 Key: MATH-703
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Christian Winter
>            Priority: Minor
>             Fix For: 3.0
>         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