pdfunc: Compute the probability density function of a matrix of...

Description Usage Arguments Details Value Examples

Description

Compute the probability density function of a matrix of features.

Usage

1
pdfunc(x, univariate = TRUE)

Arguments

x

A matrix of numeric features.

univariate

Logical indicating whether the univariate pdf should be computed.

Details

pdfunc computes univariate or multivariate probabilities for a set of observations.

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.

Value

A vector with values of the density function.

Examples

1
2
3
4
dmat <- matrix(c(3,1,3,1,2,3,-1,0),nrow=2)
pdfunc(dmat,TRUE)

#'@importFrom stats cov

dbolotov/amelie documentation built on May 25, 2019, 4:23 p.m.