powered by
Compute the probability density function of a matrix of features.
pdfunc(x, univariate = TRUE)
A matrix of numeric features.
Logical indicating whether the univariate pdf should be computed.
A vector with values of the density function.
pdfunc computes univariate or multivariate probabilities for a set of observations.
pdfunc
All columns of a row are used in computing the pdf.
Variance and covariance are computed using var and cov, where the denominator n-1 is used.
var
cov
n-1
# NOT RUN { dmat <- matrix(c(3,1,3,1,2,3,-1,0),nrow=2) pdfunc(dmat,TRUE) #'@importFrom stats cov # }
Run the code above in your browser using DataLab