View source: R/transformations.R
| decay | R Documentation |
Time series decay
decay(v, decay)
v |
numeric vector |
decay |
The rate of decay as a numeric decimal |
Applies the specified decay on the input vector, v
The transformed 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.