powered by
The input field is convolved with a circular kernel with equal weights. Takes into account missing values.
smoothconv(z, nas)
matrix with the input field to smoothen, with dimensions c(ns, ns)
c(ns, ns)
the smoothing kernel uses a radius (ns/nas)/2
(ns/nas)/2
The smoothened field.
# NOT RUN { z <- rnorm(64 * 64) dim(z) <- c(64, 64) zs <- smoothconv(z, 8) sd(zs) # [1] 0.07910996 # }
Run the code above in your browser using DataLab