Description Usage Arguments Details
Creates vector with decay factor.
1 | get_decay(n, halflife = 1, method = "semi-geometric")
|
n |
size. |
halflife |
halflife as a percentage of n. |
method |
it can be geometric or semi-gemetric. |
See reference at http://stats.stackexchange.com/questions/20542/generating-a-3-month-half-life-weighting-series-in-r it is desirable to find how both methods change with halflife of 0 and 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.