KL_dist: Kullback-Leibler for zero-mean Gaussian data

View source: R/ACutils_export.R

KL_distR Documentation

Kullback-Leibler for zero-mean Gaussian data

Description

Compute the Kullback-Leibler for zero-mean Gaussian distributed data. Can be used to measure the distance between the true underlying covariance (or precision) matrix and the estimated one.

Usage

KL_dist(Ktr, K)

Arguments

Ktr

the true matrix. Can be both covariance or precision

K

the estimated matrix. Can be both covariance or precision

Value

scalar, the distance between N(0, Ktr) and N(0, K)


alessandrocolombi/ACutils documentation built on March 3, 2023, 4:06 a.m.