commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <>
Subject Re: [Math] Issue 348
Date Fri, 05 Mar 2010 23:51:50 GMT

> Well, the exponential, chi^2 and Maxwell-Boltzman distributions are all
> specializations of the gamma distribution.
> If you working on a Monte-carlo estimate where the parameters of your chi^2
> distribution vary according to a hyper-distribution, then it would be nice
> to implement the chi^2 distribution by changing the getter's for the two
> parameters of the Gamma distribution to get the specialized values.  Then it
> would be nice to implement the generalized hyper-distributed chi^2 by
> over-riding the getters for the parameters of the chi^2 distribution to
> sample from the hyper-distribution.
> If you use getters throughout, then chi^2 is nearly a one-liner, the
> hyper-distributed chi^2 is another one-liner.  The JIT will optimize away
> all of the abstractions and give a result that is as fast as any other
> implementation.

Sorry, I don't follow you. Could you give a code example of these

> [...]


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

View raw message