bd_calc_gauss_mix_pdf_mat: Calculate the dnesity of a possibly truncated Gaussian...

Description Usage Arguments Value

View source: R/bd_calc_gauss_mix_pdf_mat.R

Description

TH is a matrix of samples of a possibly truncated Gaussian mixture with dimensions S x P, where S is the number of samples and P is the number of parameters. Repeatedly call bd_calc_gauss_mix_pdf to calculate the density function for each sample at the points in the vector y, which has length G. The output density matrix, fMat, has dimensions S x G. bd_calc_gauss_mix_pdf_mat supports the same optional as bd_calc_gauss_mix_pdf: ymin / ymax to specify the boundaries of truncation and type to set whether the density, cumuluative distribution, derivative, or rate is calculated.

Usage

1
2
bd_calc_gauss_mix_pdf_mat(TH, y, ymin = NA, ymax = NA,
  type = "density")

Arguments

TH

A matrix of samples with dimensions S x P

y

A vector of points for the density calculation with length G

ymin

(optional) The mininum y-value for truncation

ymax

(optional) The maximum y-value for truncation

type

(optional) The type of calculation: density (default), cumulative, derivative, or rate

Value

The output matrix with dimensions S x G


MichaelHoltonPrice/BayDem documentation built on Sept. 12, 2019, 9:26 p.m.