TS.stats: calculating statistics of a time series needed for parameter...

Description Usage Arguments Value Author(s) Examples

View source: R/BLRPM.R

Description

TS.stats calculates statistics of a given time series x at given accumulation levels acc.vals. The calculated statistics are the mean of the first accumulation level, the variance, auto-covariance lag-1 and the probability of zero rainfall of all given accumulation levels of the time series. These statistics are needed for estimating the BLRPM parameters.

Usage

1
TS.stats(x,acc.vals)

Arguments

x

vector of a time series

acc.vals

vector of accumulation levels, first value should be 1

Value

stats TS.stats returns a vector of statistics calculated at given accumulation levels

Author(s)

Christoph Ritschel christoph.ritschel@met.fu-berlin.de

Examples

1
2
time.series <- rgamma(1000,shape=1)
statistics <- TS.stats(time.series,acc.vals=c(1,3,12,24)) 

Example output

Loading required package: R6
Warning:  1 time steps left and not used for accumulation 
Warning:  4 time steps left and not used for accumulation 
Warning:  16 time steps left and not used for accumulation 

BLRPM documentation built on May 2, 2019, 9:23 a.m.

Related to TS.stats in BLRPM...