KLD: KL-divergence

View source: R/signatures_utils.R

KLDR Documentation

KL-divergence

Description

Compute the Kullback-Leibler Divergence between two matrices. In order to compute the divergence, .Machine$double.eps is added to matrices zero entries.

Usage

KLD(m1, m2)

Arguments

m1

original matrix

m2

matrix to be used to approximate m1

Value

KL-Divergence


Nik-Zainal-Group/signature.tools.lib documentation built on April 13, 2025, 5:50 p.m.