Description Usage Arguments Value Author(s) Examples
Generates a mixture on a 2d window where the means, covariances and component probabilities are chosen randomly. The number of components can be either fixed or random.
For examples see
http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#rnormmix
1 2 |
m |
Number of components of the mixture. |
sig0 |
Tuning parameter for generating a random matrix from an Inverse Wishart distribution. If this argument is missing it is set to .1 of the minimum width/height of the window. |
df |
Degrees of freedom for generating a random matrix from an Inverse Wishart distribution. Default is 10. |
rand_m |
Request a random number of components.
When |
xlim, ylim |
Vectors defining the observation window. The component means are sampled uniformly over this window. |
dvec |
A vector of weights used in the Dirichlet distribution used to sample the mixture probabilities. If the dimension of dvec is not the same as the number of components, then dvec is either truncated to the same dimension or repeated to have dimension m. If missing, a vector of ones is used. |
mu0, Sigma0 |
Mean and covariance matrix for a multivariate normal distribution, used to generate all component means. If mu0 is missing the center of the window is used. If Sigma0 is missing it is set to the identity matrix. If both mu0 and Sigma0 are missing, the component means are generated uniformly over the window of observation. |
Object of class normmix
.
Sakis Micheas, Yuchen Wang
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.