TNormalSampler: Generates random samples from the Tensor Normal Distribution

Description Usage Arguments Value Author(s)

View source: R/TNormalSampler.R

Description

This function generates n samples from the Tensor Normal distribution as specified by its covariances matrices.

Usage

1
TNormalSampler(n = 1, Tmean = NULL, SigmaList, listInd = TRUE)

Arguments

n

Number of samples generated.

Tmean

Tensor mean. Must be of the same dimensions as the specified by the list of Covariance matrices provided. If NULL (default) a zero tensor mean is generated.

SigmaList

A list of the covariances matrices.

listInd

A boolean specifying if the samples should be provided in a list or an array. If TRUE (default) a list is provided.

Value

Either a list with the samples or an array whose last dimension is the index of the sample.

Author(s)

Rene Gutierrez Marquez


Rene-Gutierrez/BayTenGraMod documentation built on Dec. 12, 2020, 11:24 a.m.