Go to the first, previous, next, last section, table of contents.

The Beta Distribution

Random: double gsl_ran_beta (const gsl_rng * r, double a, double b)
This function returns a random variate from the beta distribution. The distribution function is,

for @c{$0 \le x \le 1$} @math{0 <= x <= 1}.

Function: double gsl_ran_beta_pdf (double x, double a, double b)
This function computes the probability density @math{p(x)} at x for a beta distribution with parameters a and b, using the formula given above.


Go to the first, previous, next, last section, table of contents.