sup.empirical_dist: Method for obtaining the support of 'empirical_dist' object...

View source: R/empirical_dist.R

sup.empirical_distR Documentation

Method for obtaining the support of empirical_dist object x.

Description

Method for obtaining the support of empirical_dist object x.

Usage

## 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
s$has(4) # FALSE

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.