Learn R Programming

REDI (version 1.0.0)

loop_redi: Compute the evolution of REDI over successive inputs

Description

Compute the evolution of REDI over successive inputs

Usage

loop_redi(data, coef = 0.1)

Value

A tibble similar to data, containing an additional REDI

column computed over the successive input values.

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. Default is 0.1.

Examples

Run this code
data <- simu_db()
loop_redi(data = data, coef = 0.1)

Run the code above in your browser using DataLab