Description Usage Arguments Value Examples
View source: R/block_averages.R
Mean by blocks
1 | block_averages(Y, rprime, grand_pixel = TRUE)
|
Y |
a matrix |
rprime |
the radius of blocks. For example, rprime = 1 implies a window of 3*3. |
grand_pixel |
return a matrix with blocks of (2rprime+1)**2 or of 1 pixels only (by default) |
a matrix with averages by block
1 | block_averages(matrix(rnorm(25*25, 2,1), nrow = 25), rprime = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.