Learn R Programming

algebraic.dist (version 0.9.1)

nparams.empirical_dist: 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 empirical_dist
nparams(x)

Value

0 (empirical distributions are non-parametric).

Arguments

x

The empirical distribution object.

Examples

Run this code
ed <- empirical_dist(c(1, 2, 3))
nparams(ed) # 0

Run the code above in your browser using DataLab