pMetric: p-Metric

Description Usage Arguments Details Value

Description

Compute the p-metric between two probability distributions.

Usage

1
2
## S4 method for signature 'Distribution,Distribution'
pMetric(p1, p2, p)

Arguments

p1, p2

Distributions.

p

An atomic numeric greater than or equal to 1 that determines the power of the norm.

Details

Let p1 and p2 denote the vectors of probability mass assigned by two distributions defined on the same state space. Then, the p-metric between p1 and p2 is given by (sum(abs(p1 - p2)^p))^(1/p).

Value

The p-metric between distributions p1 and p2.


patrickreidy/distdist documentation built on May 22, 2019, 12:40 p.m.