jsDivergenceMtx: Jensen-Shannon Divergence Between Matrices

Description Usage Arguments Value

View source: R/analysis.R

Description

Compute the Jensen-Shannon (JS) divergence between two matrices. The matrices are each converted into a one-dimensional probability distribution which are then feed into the JS equation.

Usage

1
jsDivergenceMtx(mtx1, mtx2, n = 25)

Arguments

mtx1, mtx2

Numeric matrices which provide the data for the JS divergence calculation.

n

Number of grid points in each direction. Can be a scalar or a length-2 integer vector.

Value

JS divergence between mtx1 and mtx2.


astrolabediagnostics/orloj documentation built on May 20, 2021, 2:17 p.m.