focalWeight_inverse: Focal weights matrix

Description Usage Arguments Details Value See Also

Description

Calculate focal ("moving window") weight matrix for use in the function focal. The weights are proportional to the inverse of the Euclidean-distances.

Usage

1

Arguments

rs

A vector of length two. The resolution of a raster object.

nbs

A numerical value. The distance of the circular weights matrix in raster units.

Details

Modified from raster:::.circular.weight

Value

A square matrix. The sum of the values adds up to one.

See Also

focalWeight and focal


dschlaep/ecotoner documentation built on May 15, 2019, 2:57 p.m.