nparams.empirical_dist: Method for obtaining the name of a 'empirical_dist' object....

View source: R/empirical_dist.R

nparams.empirical_distR Documentation

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

Description

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

Usage

## 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

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