moving_average: Moving average

Description Usage Arguments Value Examples

View source: R/moving_average.R

Description

Create a new map/matrix by doing a moving average on a matrix

Usage

1

Arguments

Z

matrix/dataframe

r

integer : the radius of the window of the moving average. Ex : r = 1 implies a window of 3*3

Value

matrix (side effects imply a smaller matrix than the Z matrix passed in parametre)

Examples

1
moving_average(matrix(rnorm(10*10, 0,1), nrow = 10), r=2)

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