I am wondering that how one can calculate [jensen-shannon][1] on two probability distributions. For example, if we have

    t1 = 0.4, 0.2, 0.3, 0.05, 0.05
    t2 = 0.3, 0, 0.4, 0.1, 0.2

The formula is bit complicated for me :( 

It would be really good if some one can use above mentioned two distribution (or any other two probability distributions) to explain how to calculate jensen-shannon divergence. 

In addition, there are several different jensen-shannon divergence formulas are available, where can I find the standard formula?


  [1]: http://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence