setcov {spatstat.geom} | R Documentation |
Set Covariance of a Window
Description
Computes the set covariance function of a window.
Usage
setcov(W, V=W, ...)
Arguments
W |
A window (object of class |
V |
Optional. Another window. |
... |
Optional arguments passed to |
Details
The set covariance function of a region in the plane
is the function
defined for each vector
as the area of the intersection between
and
,
where
is the set obtained by shifting (translating)
by
.
We may interpret as the area of the set of
all points
in
such that
also lies in
.
This command computes a discretised approximation to
the set covariance function of any
plane region represented as a window object (of class
"owin"
, see owin.object
). The return value is
a pixel image (object of class "im"
) whose greyscale values
are values of the set covariance function.
The set covariance is computed using the Fast Fourier Transform,
unless W
is a rectangle, when an exact formula is used.
If the argument V
is present, then setcov(W,V)
computes the set cross-covariance function
defined for each vector
as the area of the intersection between
and
.
Value
A pixel image (an object of class "im"
) representing the
set covariance function of W
,
or the cross-covariance of W
and V
.
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner rolfturner@posteo.net
See Also
Examples
w <- owin(c(0,1),c(0,1))
v <- setcov(w)
plot(v)