Decaying Basin
Wetness Parameter
decayingBasinWetnessParameter( TimeSeriesMath
tsPrecip,
floating-point decayRate )
Compute a time series of decaying basin wetness parameters from the regular interval time series data set of incremental precipitation, tsPrecip, by:
TSResult(t) = Rate * TSResult(t-1) + TSPrecip(t)
where Rate is decayRate, and 0 < Rate < 1.
The first value of the resultant time series data set, TSResult(1), is set to the first value in the current time series data set. The current time series data set can be the same time series data set as tsPrecip. Missing values in the precipitation time series are taken as zero when applying the above equation.
Parameters:
tsPrecip – A regular interval TimeSeriesMath object representing
precipitation
decayRate – a floating-point number in the range 0 < decayRate < 1.
Example:
tsWetness =
tsPrecip.decayingBasinWetnessParameter(
tsPrecip,
0.87)
Returns: A new TimeSeriesMath object