Probability density function for the beta distribution
double betapdf( const double x, double a, double b, int * nFail = NULL )
Return the probability density for the beta distribution
EX1
void betapdf_ex1() { double x[]= {0.25, 0.5, 0.75}; double a = 1.0, b =2.0; for(int ii = 0; ii<3; ii++) printf("%f %f %f: %f\n", x[ii], a, b, betapdf(x[ii], a, b)); }
betacdf
origin.h