# NOT RUN {
# Default 1-d gaussian mixture model
model <- gmm()
# 1-d Gaussian mixture model with 3 components
model <- gmm(nComp = 3)
# 3-d Gaussian mixture model with 3 components, with specified mu,sigma and weights
mu <- matrix(c(1,2,3,2,3,4,5,6,7),ncol=3)
sigma <- array(diag(3),c(3,3,3))
model <- gmm(nComp = 3, mu = mu, sigma=sigma, weights = c(0.2,0.4,0.4), d = 3)
# }
Run the code above in your browser using DataLab