calculateJsDivergence: Calculate the Jensen-Shannon divergence.

View source: R/js_divergence.R

calculateJsDivergenceR Documentation

Calculate the Jensen-Shannon divergence.

Description

Given two probability distributions, calculate the Jensen-Shannon (JS) divergence between them.

Usage

calculateJsDivergence(p, q)

Arguments

p, q

Numerical vectors representing the probability distributions.

Value

A numeric for the JS divergence between the vectors.

See Also

generate2dJsDivergenceDataFrame


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