jsd: Jensen-Shannon divergence of discrete probability...

Description Usage Arguments Details Value

View source: R/similR.R

Description

Jensen-Shannon divergence of discrete probability distibutions JSD(p||q)

Usage

1
jsd(p, q)

Arguments

p

first probability distribution

q

second probability distribution

Details

Assumes that both p and q are normalized (sum(p)=sum(q)=1) and that they contain no NA values. Calculated with base-e log, so the bounds are [0,log(2)].

Value

JSD(p||q), a numeric value


rushkin/similR documentation built on Sept. 26, 2019, 10:42 p.m.