Revision 1610 trunk/src/linad99/vbeta.cpp
vbeta.cpp (revision 1610)  

11  11 
#include <fvar.hpp> 
12  12  
13  13 
/** 
14 
* Description not yet available. 

15 
* \param 

14 
* Beta density function 

15 
* \param a shape parameter 

16 
* \param b shape parameter 

17 
* 

18 
* Note that the mean of the distribution is given by 

19 
* mu = a/(a+b), and the variance is ab/((a+b)^2 (a+b+1)) 

16  20 
*/ 
17  21 
dvariable beta(const prevariable& a,const prevariable& b ) 
18  22 
{ 
Also available in: Unified diff