trace_term_fun: Calculate the trace term in the ELBO.

Description Usage Arguments Value

View source: R/vi_functions.R

Description

Calculate the trace term in the ELBO for use in the variational approximation.

Usage

1
trace_term_fun(cov_par, Sigma12, Sigma22, delta)

Arguments

cov_par

A named list of covariance parameters.

Sigma12

Covariance matrix between observed data locations (rows) and knots (columns)

Sigma22

Variance covariance matrix at the knots.

delta

A small diagonal perturbation to Sigma22 for numerical stability.

Value

The value of the trace term in the ELBO.


nategarton13/sparseRGPs documentation built on May 27, 2020, 9:46 a.m.