Compute the Euclidean distance between two probability distributions. (Some authors also refer to the Euclidean distance on distributions as the Patrick-Fischer distance.)
## S4 method for signature 'Distribution,Distribution' Euclidean(p1, p2)
p2 denote the vectors of probability mass assigned
by two distributions defined on the same state space. Then, the Euclidean
p2 is given by
(sum(abs(p1 - p2)^2))^(1/2).
The Euclidean distance is equal to the 2-metric.
The Euclidean distance between distributions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.