plotgmm {KSD} | R Documentation |
Plots histogram for 1-d GMM given the dataset
Description
Plots histogram for 1-d GMM given the dataset
Usage
plotgmm(data, mu = NULL)
Arguments
data |
(n by 1): The dataset of interest, where n is the number of samples. |
mu |
: True mean of the GMM (optional) |
Examples
# 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)
[Package KSD version 1.0.1 Index]