powered by
Calculates the likelihood for a given dataset for a GMM
likelihoodgmm(model = NULL, X = NULL)
: The Gaussian Mixture Model
(n by d): The dataset of interest, where n is the number of samples and d is the dimension
P (n by k) : The likelihood of each dataset belonging to each of the k component
# NOT RUN { # compute likelihood for a default 1-d gaussian mixture model # and dataset generated from it model <- gmm() X <- rgmm(model) p <- likelihoodgmm(model=model, X=X) # }
Run the code above in your browser using DataLab