meanDifference: Calculate Mean Difference Between Two Datasets

meanDifferenceR Documentation

Calculate Mean Difference Between Two Datasets

Description

Calculate the mean difference between two datasets as suggested by Wang et al. (2012).

Usage

## S4 method for signature 'SpatRaster'
meanDifference(x, y)

## S4 method for signature 'numeric'
meanDifference(x, y)

Arguments

x, y

Pairwise objects of class SpatRaster, RasterLayer or numeric.

Value

The mean difference between the two inputs as numeric.

Source

Wang et al. (2012) Impact of sensor degradation on the MODIS NDVI time series. Remote Sensing of Environment 119, 55-61, doi: 10.1016/j.rse.2011.12.001.

Detsch et al. (2016) A Comparative Study of Cross-Product NDVI Dynamics in the Kilimanjaro Region - A Matter of Sensor, Degradation Calibration, and Significance. Remote Sensing 8(2), 159, doi: 10.3390/rs8020159.

Examples

x <- 1:10
y <- 2:11
meanDifference(x, y)


Orcs documentation built on Jan. 6, 2023, 5:14 p.m.