x.R/generic_dist.R
nparams.RdGeneric method for obtaining the number of parameters of
distribution-like object x.
nparams(x)Integer; the number of parameters.
d <- empirical_dist(matrix(rnorm(30), ncol = 3))
nparams(d) # 0 (non-parametric)
#> [1] 0