
Renyi divergence of order alpha between two discrete distributions
Source:R/bnp_ghosal.R
morie_gh_renyi.RdRenormalises both inputs to sum to one and returns
\((\alpha - 1)^{-1} \log \sum_i p_i^{\alpha} q_i^{1 - \alpha}\).
The order alpha must differ from 1; no check is performed.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_gh_renyi(V, V)
#> [1] 0