mgc.sims.sim_gmm: GMM Simulate

View source: R/simu.R

mgc.sims.sim_gmmR Documentation

GMM Simulate

Description

A helper function for simulating from Gaussian Mixture.

Usage

mgc.sims.sim_gmm(mus, Sigmas, n, priors)

Arguments

mus

[d, K] the mus for each class.

Sigmas

[d,d,K] the Sigmas for each class.

n

the number of examples.

priors

K the priors for each class.

Value

A list with the following:

X

[n, d] the simulated data.

Y

[n] the labels for each data point.

priors

[K] the priors for each class.

Author(s)

Eric Bridgeford


JINJINT/aLDG documentation built on April 1, 2022, 6:23 p.m.