gmmsamp

Purpose

Sample from a Gaussian mixture distribution.

Synopsis

data = gmmsamp(mix, n)
[data, label] = gmmsamp(mix, n)

Description

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.

See Also

gsamp, gmm
Pages: Index

Copyright (c) Ian T Nabney (1996-9)