Plots histogram for 1-d GMM given the dataset
Plots histogram for 1-d GMM given the dataset
plotgmm(data, mu = NULL)
data |
(n by 1): The dataset of interest, where n is the number of samples. |
mu |
: True mean of the GMM (optional) |
# Plot pdf histogram for a given dataset model <- gmm() X <- rgmm(model) plotgmm(data=X) # Plot pdf histogram for a given dataset, with lines that indicate the mean model <- gmm() mu <- model$mu X <- rgmm(model) plotgmm(data=X, mu=mu)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.