commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikkel Meyer Andersen <m...@mikl.dk>
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: https://issues.apache.org/jira/browse/MATH-332

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 <ted.dunning@gmail.com>:
> 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 <mikl@mikl.dk>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: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message