Learn R Programming

VBmix (version 0.3.2)

dat2sample:

Description

generates data elements according to SYN2 process (sample along a semi-sphere with additive noise, see reference).

Usage

dat2sample(nelts, radius, noise, oldbounds = NULL, newbounds = NULL)

Arguments

nelts
number of elements to generate.
radius
radius of the sphere to sample from.
noise
additive noise magnitude.
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

dat1sample dat3sample

Examples

Run this code
temp <- dat2sample(500, 10, 1)

Run the code above in your browser using DataLab