block_averages: Mean by blocks

Description Usage Arguments Value Examples

View source: R/block_averages.R

Description

Mean by blocks

Usage

1
block_averages(Y, rprime, grand_pixel = TRUE)

Arguments

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)

Value

a matrix with averages by block

Examples

1
block_averages(matrix(rnorm(25*25, 2,1), nrow = 25), rprime = 5)

C-Juliette/Geostatistic documentation built on Dec. 17, 2021, 11:58 a.m.