The functions measurePositive
and measureNegative
return the positive and negative parts of the measure,
and measureVariation
returns the variation (sum of positive and
negative parts). The function totalVariation
returns the total
variation norm.
If \(\mu\) is a signed measure,
it can be represented as
$$\mu = \mu_{+} - \mu_{-}$$
where \(\mu_{+}\) and \(\mu_{-}\)
are nonnegative measures called the positive and negative
parts of \(\mu\).
In a nutshell, the positive part of \(\mu\)
consists of all positive contributions or increments,
and the negative part consists of all negative contributions
multiplied by -1
.
The variation \(|\mu|\) is defined by
$$\mu = \mu_{+} + \mu_{-}$$
and is also a nonnegative measure.
The total variation norm is the integral of the variation.