Learn R Programming

gptk (version 1.06)

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

gaussSamp(mu=matrix(0,nrow=dim(Sigma)[1]), Sigma, numSamps)

Arguments

mu
the mean of the Gaussian to sample from.
Sigma
the covariance of the Gaussian to sample from.
numSamps
the number of samples to take from the 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