Learn R Programming

gptk (version 1.0)

gaussSamp: Sample from a Gaussian with a given covariance.

Description

samples a given number of samples from a Gaussian with a given covariance matrix.

Usage

y <- gaussSamp(Sigma, numSamps)

Arguments

Sigma
the covariance of the Gaussian to sample from.
numSamps
the number of samples to take from Gaussian.

Value

  • ythe samples from the Gaussian

See Also

rnorm, eigen.

Examples

Run this code
## missing

Run the code above in your browser using DataLab