Density and distribution function for a mixture of Gaussians with
m
components.
dgaussmixt(params, x, log = FALSE, trunc = TRUE)
pgaussmixt(params, x, trunc = TRUE)
matrix of mixture parameters of dimension 3 x m, where m is the number of components, so that each column contains the mixture parameters (pi, mu, sigma) related to one component
vector of sample data
logical, if TRUE, probabilities p
are
given as log(p
).
logical, if TRUE (default), the Gaussian density is truncated below zero.
dgaussmixt
gives the density and pgaussmixt
gives the
distribution function