Description Usage Arguments Details Value See Also
Compute the Manhattan distance between two probability distributions. This distance is also known as the taxicab distance, the city block distance, the rectilinear distance, and the snake distance.
## S4 method for signature 'Distribution,Distribution' Manhattan(p1, p2)
p2 denote the vectors of probability mass assigned
by two distributions defined on the same state space. Then, the Manhattan
p2 is given by
sum(abs(p1 - p2)).
The Manhattan distance is equal to the 1-metric. It is also equal to twice the trace distance.
The Manhattan distance between distributions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.