smoothconv {rainfarmr}R Documentation

Smoothening using convolution with a circular kernel

Description

The input field is convolved with a circular kernel with equal weights. Takes into account missing values.

Usage

smoothconv(z, nas)

Arguments

z

matrix with the input field to smoothen, with dimensions c(ns, ns)

nas

the smoothing kernel uses a radius (ns/nas)/2

Value

The smoothened field.

Author(s)

Jost von Hardenberg, j.vonhardenberg@isac.cnr.it

Examples

z <- rnorm(64 * 64)
dim(z) <- c(64, 64)
zs <- smoothconv(z, 8)
sd(zs)
# [1] 0.07910996

[Package rainfarmr version 0.1 Index]