Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

measureVariation

Positive and Negative Parts, and Variation, of a Measure


Description

Given a measure A (object of class "msr") these functions find the positive part, negative part and variation of A.

Usage

measurePositive(x)
measureNegative(x)
measureVariation(x)
totalVariation(x)

Arguments

x

A measure (object of class "msr").

Details

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 μ is a signed measure, it can be represented as

μ = μ[+] - μ[-]

where μ[+] and μ[-] are nonnegative measures called the positive and negative parts of μ. In a nutshell, the positive part of μ consists of all positive contributions or increments, and the negative part consists of all negative contributions multiplied by -1.

The variation |μ| is defined by

μ = μ[+] + μ[-]

and is also a nonnegative measure.

The total variation norm is the integral of the variation.

Value

The result of measurePositive, measureNegative and measureVariation is another measure (object of class "msr") on the same spatial domain. The result of totalVariation is a non-negative number.

Author(s)

References

Halmos, P.R. (1950) Measure Theory. Van Nostrand.

See Also

Examples

X <- rpoispp(function(x,y) { exp(3+3*x) })
   fit <- ppm(X, ~x+y)
   rp <- residuals(fit, type="pearson")

   measurePositive(rp)
   measureNegative(rp)
   measureVariation(rp)

   # total variation norm
   totalVariation(rp)

spatstat.core

Core Functionality of the 'spatstat' Family

v2.1-2
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Kasper Klitgaard Berthelsen [ctb], Achmad Choiruddin [ctb], Jean-Francois Coeurjolly [ctb], Ottmar Cronie [ctb], Tilman Davies [ctb], Julian Gilbey [ctb], Yongtao Guan [ctb], Ute Hahn [ctb], Kassel Hingee [ctb], Abdollah Jalilian [ctb], Marie-Colette van Lieshout [ctb], Greg McSwiggan [ctb], Tuomas Rajala [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Plenge Waagepetersen [ctb], Hangsheng Wang [ctb]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.