weighted_mixture | R Documentation |
Weights are implemented by using systematic resampling to obtain an unweighted set of parameters.
An unweighted mixture is then fitted using fit_mixture
.
weighted_mixture(parameters, nsamples, weights, log = F)
parameters |
An N x d matrix containing the sampled values for the d parameters. |
nsamples |
The number of parameter to resample as data to fit the mixture to. |
weights |
A vector of weights with length N. |
log |
logical indicating if weights are logged. |
A list of the mixture components (see function fit_mixture
)
probs
The mixture weights
Mean
The means of the components
Sigma
The covariance matrices of the components
G
Number of components
BIC
BIC of fitted mixture
ModelName
Model name from package mclust
fit_mixture
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.