Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotgmm

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)

KSD

Goodness-of-Fit Tests using Kernelized Stein Discrepancy

v1.0.1
MIT + file LICENSE
Authors
Min Hyung Kang [aut, cre], Qiang Liu [aut]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.