powered by
Calculates the mean, median, or quantiles of the pixel values in a pixel image on a linear network.
# S3 method for linim mean(x, ...) # S3 method for linim median(x, ...) # S3 method for linim quantile(x, probs=seq(0,1,0.25), ...) # S3 method for linim quantilefun(x, ..., type=1)
# S3 method for linim median(x, ...)
# S3 method for linim quantile(x, probs=seq(0,1,0.25), ...)
# S3 method for linim quantilefun(x, ..., type=1)
For mean and median, a single number. For quantile, a numeric vector of the same length as probs. For quantilefun, a function.
mean
median
quantile
probs
quantilefun
A pixel image on a linear network (object of class "linim").
"linim"
Vector of probabilities for which quantiles should be calculated.
Arguments passed to other methods.
Integer specifying the type of quantiles, as explained in quantile.default. Only types 1 and 2 are currently implemented.
quantile.default
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.
These functions calculate the mean, median and quantiles of the pixel values in the image x on a linear network.
x
An object of class "linim" describes a pixel image on a linear network. See linim.
linim
The functions described here are methods for the generic mean, median and quantile for the class "linim".
mean, median, quantile,
mean.im, quantile.im, quantilefun
mean.im
quantile.im
M <- psp2mask(as.psp(simplenet)) Z <- as.im(function(x,y) {x-y}, W=M) X <- linim(simplenet, Z) X mean(X) median(X) quantile(X) f <- quantilefun(X)
Run the code above in your browser using DataLab