powered by
Calculates Ovaskainen's (2008) d-divergence between 2 zero-mean multivariate normal distributions.
Ddivergence(CA=NULL, CB=NULL, n=10000)
d-divergence
Matrix A
Matrix B
number of Monte Carlo samples for approximating the integral
Jarrod Hadfield j.hadfield@ed.ac.uk
Ovaskainen, O. et. al. (2008) Proc. Roy. Soc - B (275) 1635 593-750
CA<-rIW(diag(2),10, n=1) CB<-rIW(diag(2),10, n=1) Ddivergence(CA, CB)
Run the code above in your browser using DataLab