Returns a function that evaluates the beta CDF at given points.

# S3 method for class 'beta_dist'
cdf(x, ...)

Arguments

x

A beta_dist object.

...

Additional arguments (not used).

Value

A function function(q, log.p = FALSE, ...) returning the CDF (or log-CDF) at q.

Examples

x <- beta_dist(2, 5)
F <- cdf(x)
F(0.3)
#> [1] 0.579825
F(0.5)
#> [1] 0.890625