qm.doywindowgen: Construct matrix of all DOYs to be considered for a moving...

Description Usage Arguments Value Author(s) Examples

View source: R/qm.doywindowgen.R

Description

qm.doywindowgen constructs a matrix [365,window.width] that indicates for each day-of-year (DOY) the DOYs to be considered in moving window apoplications.

Usage

1
qm.doywindowgen(window.width)

Arguments

window.width

Length of moving window (number of days). Should be an uneven number.

Value

List of 3: $half.width: Half window width minus 0.5. $window.width: Total width of moving window. $doymatrix: Matrix indicating the DOYs to account for depending on the actual centered DOY (matrix[365,window.width]).

Author(s)

Sven Kotlarski (MeteoSwiss), Jan Rajczak (ETH Zurich)

Examples

1
2
3
4
5
## Not run: 
# Construct DOY-matrix for 91-day moving window
qm.doywindowgen(91)

## End(Not run)

SvenKotlarski/qmCH2018 documentation built on July 14, 2019, 7:39 p.m.