cholQsample: Sample from the multivariate normal distribution with...

View source: R/BayesGLM2_Bayes_utils.R

cholQsampleR 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.


BayesfMRI documentation built on Dec. 23, 2025, 1:07 a.m.