Test whether an object is a beta_dist.

is_beta_dist(x)

Arguments

x

The object to test.

Value

TRUE if x inherits from "beta_dist", FALSE otherwise.

Examples

is_beta_dist(beta_dist(2, 5))
#> [1] TRUE
is_beta_dist(normal(0, 1))
#> [1] FALSE