BL.acc: Accumulation of a precipitation stepfunction

Description Usage Arguments Value Author(s) Examples

View source: R/BLRPM.R

Description

BL.acc accumulates the BLRPM stepfunction for a given accumulation time t.acc at a given accumulation level acc.val. An offse can be defined. The unit is typically hours.

Usage

1
BL.acc(sfn, t.acc = 240, acc.val = 1, offset = 0)

Arguments

sfn

stepfunction of precipitation

t.acc

value specifiying the length of accumulated time series [h]

acc.val

value specifying the accumulation level [h]

offset

value specifying the offset of the accumulated time series [h]

Value

p.acc data.frame

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
lambda <- 4/240
gamma <- 1/10
beta <- 0.3
eta <- 2
mux <- 4
t.sim <- 240
t.acc <- t.sim
acc.val <- 1
offset <- 0

simulation <- BL.sim(lambda,gamma,beta,eta,mux,t.sim)
sfn <- BL.stepfun(simulation$cells)
ts <- BL.acc(sfn,t.acc,acc.val,offset)

Example output

Loading required package: R6

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

Related to BL.acc in BLRPM...