【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.24.5.4.1 betapdf
Contents
Description
Probability density function for the beta distribution
Syntax
double betapdf( const double x, double a, double b, int * nFail = NULL )
Parameters
- x
- [input] the value of the beta variate,
/math-50b4a93e32bf20b76f0c015636bde1b4.png?v=0)
- a
- [input] the first shape parameter, a, of the required beta distribution
- b
- [input] the second shape parameter, b, of the required beta distribution
- nFail
- [output] fail code
Return
Return the probability density for the beta distribution
Examples
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)); }
Remark
See Also
Header to Include
origin.h