distcdf(W, V=W, ..., dW=1, dV=dW, nr=1024)
"owin"
) containing the
first random point.W
.as.mask
to determine the
pixel resolution for the calculation.as.im
, for example, a function(x,y)
In the simplest case, the command distcdf(W)
, the random points are
assumed to be uniformly distributed in the same
window W
.
Alternatively the two random points may be
uniformly distributed in two different windows W
and V
.
In the most general case the first point $X_1$ is random
in the window W
with a probability density proportional to
dW
, and the second point $X_2$ is random in
a different window V
with probability density proportional
to dV
.
The calculation is performed by numerical integration of the set covariance
function setcov
for uniformly distributed points, and
by computing the covariance function imcov
in the
general case. The accuracy of the result depends on
the pixel resolution used to represent the windows: this is controlled
by the arguments ...
which are passed to as.mask
.
For example use eps=0.1
to specify pixels of size 0.1 units.
setcov
,
as.mask
.# The unit disc
B <- disc()
plot(distcdf(B))
Run the code above in your browser using DataLab