Description Usage Arguments Value
The result of this function is a hexmatrix of dimensions equal to m
with values
computed as a weighted sum of value at the given position and in the neighbourhood
of that position. The weights are given by the probs
argument.
1 | hexconvol(m, probs = 1)
|
m |
a numeric hexmatrix |
probs |
a vector of length 7 with six weights corresponding to the neighbours clock-wisely from top-left. The 7th value corresponds to the weight of a value at the "current" position. Precisely, the weights are understood as follows:
|
a hexmatrix of dimensions equal to m
with values computed as a convolution
over the neighbours of m
's values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.