neighbourmean-methods: Average over nearest neighbours

Description Usage Arguments Value

Description

Given the nearest neighbour measurements, average over the nearest neighbours of each cell, with optional boundary weights.

Usage

1
neighbourMean(object, useWeights = FALSE, normalise = TRUE)

Arguments

object

The SPData object to use

useWeights

If TRUE then the mean is weighted using the relative boundary weights. If FALSE then the normal mean is taken over the nearest neighbours.

normalise

If TRUE each channel is centre-scaled to mean 0 and standard deviation 1.

Value

A matrix of dimension n by p for n cells and p nearest neighbours.


kieranrcampbell/SpatialPRo documentation built on May 20, 2019, 9:24 a.m.