commons-dev mailing list archives

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

> 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
one-liners?

> [...]

Thanks,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message