Determine if the object is a valid 1/x distribution, as created by create_one_div_x_distr

is_one_div_x_distr(x)

Arguments

x

an object, to be determined if it is a valid 1/x distribution

Value

TRUE if x is a valid 1/x distribution, FALSE otherwise

See also

use is_distr to see if x is any distribution

Author

Richèl J.C. Bilderbeek

Examples

# TRUE
is_one_div_x_distr(create_one_div_x_distr())
#> [1] TRUE
# FALSE
is_one_div_x_distr(create_poisson_distr())
#> [1] FALSE
is_one_div_x_distr(NA)
#> [1] FALSE
is_one_div_x_distr(NULL)
#> [1] FALSE
is_one_div_x_distr("nonsense")
#> [1] FALSE