Method for obtaining the name of a empirical_dist object. Since the empirical distribution is parameter-free, this function returns 0.

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

Arguments

x

The empirical distribution object.

Value

0 (empirical distributions are non-parametric).

Examples

ed <- empirical_dist(c(1, 2, 3))
nparams(ed) # 0
#> [1] 0