spatstat (version 1.48-0)

methods.ssf: Methods for Spatially Sampled Functions

Description

Methods for various generic commands, for the class "ssf" of spatially sampled functions.

Usage

"marks"(x, ...)
"marks"(x, ...) <- value
"unmark"(X)
"as.im"(X, ...)
"as.ppp"(X, ...)
"print"(x, ..., brief=FALSE)
"range"(x, ...)
"min"(x, ...)
"max"(x, ...)
"integral"(f, domain=NULL, ..., weights=attr(f, "weights"))

Arguments

x,X,f
A spatially sampled function (object of class "ssf").
...
Arguments passed to the default method.
brief
Logical value controlling the amount of detail printed.
value
Matrix of replacement values for the function.
domain
Optional. Domain of integration. An object of class"owin".
weights
Optional. Numeric vector of weights associated with the sample points.

Value

marks returns a matrix.marks(x) <- value returns an object of class "ssf".as.owin returns a window (object of class "owin").as.ppp and unmark return a point pattern (object of class "ppp").print returns NULL.range returns a numeric vector of length 2. min and max return a single numeric value.integral returns a numeric value (if x had numeric values) or a numeric vector (if x had vector values).

Details

An object of class "ssf" represents a function (real- or vector-valued) that has been sampled at a finite set of points.

The commands documented here provided methods for this class, for the generic commands marks, marks<-, as.ppp, print, range, min, max and integral.

See Also

ssf

Examples

Run this code
  X <- cells[1:4]
  f <- ssf(X, nndist(X, k=1:3))
  f
  marks(f)
  as.ppp(f)
  as.im(f)

Run the code above in your browser using DataLab