Description Usage Arguments Value
Given the nearest neighbour measurements, average over the nearest neighbours of each cell, with optional boundary weights.
1 | neighbourMean(object, useWeights = FALSE, normalise = TRUE)
|
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. |
A matrix of dimension n by p for n cells and p nearest neighbours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.