w_sums: Sum of Neighbourhood

Description Usage Arguments

View source: R/nhapply_functions.R

Description

The function outputs a the weighted col-sums as a vector.

Usage

1
w_sums(mat_open, weights = 1)

Arguments

mat_open

is a 2 dimensional input matrix

weights

is a vector of weights that is used when summing up a neighbourhood. Vector length must be the same as points in neighbourhood.


Tobiaspk/RPackage_nhapply documentation built on Feb. 19, 2021, 12:13 a.m.