Description Usage Arguments Value
View source: R/bd_calc_gauss_mix_pdf.R
bd_calc_gauss_mix_pdf
calculates the probability density
for a possibly truncated Gaussian mixture. The density, f', and rate, f'/f,
can also be calculated by specifying the input type
, which is
'density' by default, but can also be 'cumulative', 'derivative', or 'rate'.
The parameter vector th has the ordering wk, muk, sigk, where
wk, muk, and sigk are the weight, mean, and standard deviation of the k-th
mixture. There are K total mixtures. The truncation boundaries ymin and ymax
are optional.
1 | bd_calc_gauss_mix_pdf(th, y, ymin = NA, ymax = NA, type = "density")
|
th |
A vector-like object that parameterizes the distribution |
y |
Vector of locations at which to calculate the density |
type |
(default density) An optional input specifying whether to calculate the density, cumulative distribution, derivative of the density, or rate |
The output vector with length G
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.