commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: [MATH] Density functions for all continuous distributions gives rise to re-consider the HasDensity-interface
Date Fri, 22 Jan 2010 21:01:53 GMT
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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message