Skip to contents

is_distribution tests if x inherits from "distribution".

Usage

is_distribution(x)

Arguments

x

An object to test.

Examples


Z <- Normal()

is_distribution(Z)
#> [1] TRUE
is_distribution(1L)
#> [1] FALSE