calculate2dJsDivergence: Jensen-Shannon divergence between two-dimensional maps.

View source: R/js_divergence.R

calculate2dJsDivergenceR Documentation

Jensen-Shannon divergence between two-dimensional maps.

Description

Calculate the Jensen-Shannon (JS) divergence between two two-dimensional maps. These maps may be generated by a dimensionality reduction (DR) method; however this is not a requirement.

Usage

calculate2dJsDivergence(x, y, n = 2^8)

Arguments

x, y

Two-dimensional numeric matrices to compare.

n

Number of grid points for KDE.

Value

A numeric for the JS divergence between the maps.

See Also

calculateJsDivergence


ismmshimc/cytutils documentation built on Aug. 26, 2022, 2:07 p.m.