Method for obtaining the support of empirical_dist object x.

# S3 method for class 'empirical_dist'
sup(x)

Arguments

x

The empirical distribution object.

Value

A finite_set object containing the support of x.

Examples

ed <- empirical_dist(c(1, 2, 2, 3))
s <- sup(ed)
s$has(2) # TRUE
#> [1] TRUE
s$has(4) # FALSE
#> [1] FALSE