data = gmmsamp(mix, n) [data, label] = gmmsamp(mix, n)
data = gsamp(mix, n)
generates a sample of size n
from a
Gaussian mixture distribution defined by the mix
data
structure. The matrix x
has n
rows in which each row represents a mix.nin
-dimensional sample vector.
[data, label] = gmmsamp(mix, n)
also returns a column vector of
classes (as an index 1..N) label
.
gsamp
, gmm
Copyright (c) Ian T Nabney (1996-9)