commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikkel Meyer Andersen <>
Subject Re: [MATH] Density functions for all continuous distributions gives rise to re-consider the HasDensity-interface
Date Fri, 22 Jan 2010 21:46:27 GMT
I've now implemented this idea:

I haven't closed MATH-330 and MATH-331 because they can still be used
if this MATH-332 is rejected.

2010/1/22 Ted Dunning <>:
> I think you mean double density(double x)
> I think that it makes a lot of sense.  If necessary, something like
> AbstractContinuousDistribution could implement a default that throws
> UnimplementedOperationException.
> On Fri, Jan 22, 2010 at 11:20 AM, Mikkel Meyer Andersen <>wrote:
>> This means that now every continuous distribution implements
>> HasDensity<Double>. Wouldn't it then be a good idea to put a double
>> density(Double x)-method in the ContinuousDistribution-interface? It
>> would give a lot of advantages, e.g. in regards to dynamic
>> dispatching.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message