rmvnorm_sparseprec: Sample multivariates with precision matrix

View source: R/tmbutils.R

rmvnorm_sparseprecR Documentation

Sample multivariates with precision matrix

Description

Sample multivariates with precision matrix

Usage

rmvnorm_sparseprec(n, mean = rep(0, nrow(prec)), prec = diag(length(mean)))

Arguments

n

number of samples

mean

scalar/vector of the mean(s)

prec

precision matrix

Value

n samples


kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.