powered by
Time series decay
decay(v, decay)
The transformed vector v
v
numeric vector
The rate of decay as a numeric decimal
Applies the specified decay on the input vector, v
decay(c(1,0,0,0,1,0,0,0,2), 0.5) decay(c(1,0,0,0,1,0,0,0,2), 0.1)
Run the code above in your browser using DataLab