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


dtelad11/cytutils documentation built on Sept. 1, 2022, 2:45 p.m.