runningAvg: Running Average

Description Usage Arguments Value Author(s) See Also Examples

Description

Reduces noise in NDVI time-series through running averaging.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# 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)

phenex documentation built on May 1, 2019, 10:56 p.m.

Related to runningAvg in phenex...