a2: parameter a_2 of the polynomial

Description Usage Arguments Value Author(s) Examples

View source: R/disagg_erwWeibul.R

Description

analytical solution for the parameter a_2 of the polynomial

Usage

1
a2(t, qs, q1, q2, q3)

Arguments

qs

last disaggregated discharge of the day before

q1

daily mean discharge of the current day

q2

daily mean discharge of the next day

q3

daily mean discharge of the day after the next day

Value

Q_i(t)

Author(s)

Svenja Fischer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (t, qs, q1, q2, q3)
{
    a2t <- 1/6 * ((12 * t + 12) * qs - q3 + t * (-4 * q3 + 14 *
        q2 - 22 * q1) + 8 * q2 - 19 * q1)
    return(a2t)
  }

SvenjaFischer/Disagg documentation built on Oct. 9, 2017, 8:32 p.m.