Description Usage Arguments Value
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.
1 | jsDivergenceMtx(mtx1, mtx2, n = 25)
|
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. |
JS divergence between mtx1 and mtx2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.