Revision 1254 trunk/contrib/statslib/dgamma.cpp
dgamma.cpp (revision 1254)  

17  17 
* \f$ V(x)=a/b^2 \f$. Note that you can also derive \f$a\f$ and \f$b\f$ from 
18  18 
* the expected value and variance via: 
19  19 
* \f[ 
20 
* a = \frac{E(x)^2}{V(x)}, \quad b=\frac{E(x)}{V(x)}


20 
* a = \frac{E(x)^2}{V(x)}, \quad b=\frac{a}{V(x)}


21  21 
* \f] 
22  22 
* 
23  23 
* 
Also available in: Unified diff