Learn R Programming

VBmix (version 0.3.2)

dat1sample:

Description

generates data elements according to SYN1 process (sample from a 2D GMM, linearly transformed with additive noise, see reference).

Usage

dat1sample(nelts, gmm, noise, transform=generate2Dtransform(2), 
	oldbounds = NULL, newbounds = NULL)

Arguments

nelts
number of elements to generate.
gmm
2D GMM to be sampled from.
noise
additive noise magnitude.
transform
matrix defining linear transform. Defaults to I.
oldbounds
optional argument for sample rescaling. If not NULL, transmitted to setDomain as oldspan.
newbounds
optional argument for sample rescaling. If not NULL, transmitted to setDomain as newspan.

Value

matrix of sampled row-elements

References

Bruneau, P., Gelgon, M. and Picarougne, F. (2011) _Component-level aggregation of probabilistic PCA mixtures using variational-Bayes_, Tech Report, http://hal.archives-ouvertes.fr/docs/00/56/72/99/PDF/techrep.pdf.

See Also

dat2sample dat3sample

Examples

Run this code

temp <- dat1sample(500, randomGmm(), 1, generate2Dtransform())

Run the code above in your browser using DataLab