cholQsample {BayesfMRI}R Documentation

Sample from the multivariate normal distribution with Cholesky(Q)

Description

Sample from the multivariate normal distribution with Cholesky(Q)

Usage

cholQsample(n, mu, cholQ)

Arguments

n

number of samples

mu

mean vector

cholQ

Cholesky decomposition of the precision (found via Matrix::Cholesky(Q))

Value

An n \times p matrix of samples from the MVN distribution, where p is the length of mu.


[Package BayesfMRI version 0.10.1 Index]