Description Usage Arguments Value Examples
Calculates the posterior probability for a given dataset for a GMM
1 | posteriorgmm(model = NULL, X = NULL)
|
model |
: The Gaussian Mixture Model |
X |
(n by d): The dataset of interest, where n is the number of samples and d is the dimension |
P (n by k) : The posterior probabilty of each dataset belonging to each of the k component
1 2 3 4 5 | # compute posterior probability for a default 1-d gaussian mixture model
# and dataset generated from it
model <- gmm()
X <- rgmm(model)
p <- posteriorgmm(model=model, X=X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.