You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ted Dunning <te...@gmail.com> on 2008/09/02 10:23:45 UTC

[math] patch available for density computations

I created a patch for MATH-222 that adds density computations for Gamma,
Exponential, Normal, and ChiSquare distributions.

IT also provides a way to declare this uniformly without disturbing the
other interfaces that are poking around.

There is also a second patch that provides a full implementation of the Beta
distribution as well.  That may be better to split off, but I need both Beta
and density capabilities so I did both.

The implementation that I chose depends on an object argument (for
genericity).  My reckoning is that the JIT will in-line the density
computation and remove the boxing.  Having the generic HasDensity interface
will help enormously when I add Multinomials and Dirichlet distributions
which take complex objects for density computations.

-- 
ted