https://www.mathworks.com/matlabcentral/fileexchange/20689-jensen-shannon-divergence