Compute REDI for a specific input
Usage
compute_redi(data, coef = 0.1)
Arguments
- data
A tibble or data frame, containing an Input
column (with the
Date format) and an Output
column. A simple vector of workload values,
pre-sorted by chronological order, can also be provided.
- coef
A number corresponding to the lambda coefficient, controlling the
decay of the exponential weights.
Value
A number, corresponding to the REDI value at the last Input
time,
computed over the whole period.
Examples
data <- simu_db()
compute_redi(data = data, coef = 0.1)
#> [1] 49.36479