Hard-coded functions, representing (runtime) function objects.
DO NO CALL THESE FUNCTIONS. CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
#discrete kernel smoothing models
#(DKS)
mf.dfh (x, …, freq) #PMF
mf.dFh (q) #CDF
mf.dFht (p) #QF#categorical models
#(CAT/gMIXp)
mf.gfh (g, …, freq) #PMF
mf.gFh (q) #CDF
mf.gFht (p, …, name=FALSE) #QF
#univariate continuous models
#(CKS/EL/xMIXp, UV/C)
mf.cfh (x) #PDF
mf.cFh (q) #CDF
mf.cFht (p) #QF
#multivariate continuous models
#(CKS, MV/MVC)
mf.cfh.mv (x) #PDF
mf.cFh.mv (q) #CDF
#chained quantile functions
mf.chFht (p)
IN (DKS) MODELS: An integer vector, of quantiles. IN (CAT/gMIXp) MODELS: An integer/factor/character vector, of quantiles. Integers represent category indices. Characters and formatted factors represent category names. IN (CKS/EL/xMIXp, UV/C) MODELS: A numeric vector, of quantiles. IN (CKS, MV/MVC) MODELS: A numeric vector or matrix, of quantiles. Standard numeric vectors are rbind-ed into single-row matrices. Each row represents one evaluation point, and each column represents one variable.
A numeric vector of probabilities, between zero and one. Except in chained quantile functions, where p should be a numeric vector or matrix. Standard numeric vectors are rbind-ed into single-row matrices.
Logical, if true, return frequencies rather than probabilities. Refer to the value section. Default depends on the object. Refer to the corresponding constructors.
Logical, if true, return category names rather than category indices. Refer to the value section.
.
PMFs return a numeric vector, giving mass (if freq=FALSE) or frequencies (if freq=TRUE).
PDFs return a numeric vector, giving density.
CDFs return a numeric vector, giving cumulative probability (from zero to one).
In (DKS) models, QFs return an integer vector of quantiles.
In (CAT/gMIXp) models, QFs return an integer vector (if name=FALSE) of category indices or a character vector (if name=TRUE) of category names.
In (CKS/EL/xMIXp, UV/C) models, QFs return a numeric vector of quantiles.
Chained quantiles, return a numeric matrix of multivariate quantiles.
DO NO CALL THESE FUNCTIONS. CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
If x, q or p are matrices, then the order of the columns should be the same as the order of the random variables in the model.
Refer to the vignette for an overview, references and better examples.
Discrete Kernel Smoothing, Continuous Kernel Smoothing Categorical Distributions, Empirical-Like Distributions