selectObsWindow.stppp: selectObsWindow.stppp function

View source: R/selectObsWindow.R

selectObsWindow.stpppR Documentation

selectObsWindow.stppp function

Description

This function computes an appropriate observation window on which to perform prediction. Since the FFT grid must have dimension 2^M by 2^N for some M and N, the window xyt$window, is extended to allow this to be fit in for a given cell width.

Usage

## S3 method for class 'stppp'
selectObsWindow(xyt, cellwidth, ...)

Arguments

xyt

an object of class stppp

cellwidth

size of the grid spacing in chosen units (equivalent to the cell width argument in lgcpPredict)

...

additional arguments

Details

!!NOTE!! that this function also returns the grid ($xvals and $yvals) on which the FFT (and hence MALA) will be performed. It is useful to define spatialAtRiskobjects on this grid to prevent loss of information from the bilinear interpolation that takes place as part of the fitting algorithm.

Value

a resized stppp object together with grid sizes M and N ready for FFT, together with the FFT grid locations, can be useful for estimating lambda(s)

See Also

spatialAtRisk


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.