rgmm {KSD} | R Documentation |
Generates dataset from Gaussian Mixture Model
Description
Generates dataset from Gaussian Mixture Model
Usage
rgmm(model = NULL, n = 100)
Arguments
model |
: Gaussian Mixture Model defined by gmm() |
n |
: number of samples desired |
Value
data (n by d): Random dataset generated from given the Gaussian Mixture Model
Note
Requires library mvtnorm
Examples
#Generate 100 samples from default gaussian mixture model
model <- gmm()
X <- rgmm(model)
#Generate 300 samples from 3-d gaussian mixture model
model <- gmm(d=3)
X <- rgmm(model,n=300)
[Package KSD version 1.0.1 Index]