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 <m...@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.
>

Reply via email to