jensenShannon: Calculate Jensen Shannon divergence between two probability...

View source: R/abundance.R

jensenShannonR Documentation

Calculate Jensen Shannon divergence between two probability distributions

Description

Calculate Jensen Shannon divergence between two probability distributions

Usage

jensenShannon(x, y, base = 2)

Arguments

x

Vector of counts or proportions of N elements

y

Second vector of counts or proportions of N elements

base

Base of logarithm

Value

Jensen-Shannon divergence

Examples

jensenShannon(1:4,4:1)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.