View source: R/js_divergence.R
calculate2dJsDivergence | R Documentation |
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.
calculate2dJsDivergence(x, y, n = 2^8)
x, y |
Two-dimensional numeric matrices to compare. |
n |
Number of grid points for KDE. |
A numeric for the JS divergence between the maps.
calculateJsDivergence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.