runningAvg {phenex}R Documentation

Running Average

Description

Reduces noise in NDVI time-series through running averaging.

Usage

runningAvg(x, window)

Arguments

x

An object of class ‘NDVI’ containing raw NDVI values.

window

Window size of the running averaging algorithm. Default is 7.

Value

An object of class ‘NDVI’ containing raw and corrected NDVI values.

Author(s)

Daniel Doktor, Maximilian Lange

See Also

modelNDVI,NDVI

Examples

	# load data
	data(avhrr)

	# create NDVI object
	ndvi <- new("NDVI", values=avhrr.ndvi/10000, year=as.integer(1995))

	# correct values (bise)
	ndvi.ravg <- runningAvg(ndvi, window=7)

	#plot
	plot(ndvi.ravg)

[Package phenex version 1.4-5 Index]