Description Usage Arguments Details
View source: R/optimize_decay.R
A function to calculate the weights for a decaying function.
1 | optimize_decay(nrows, decay)
|
nrows |
An integer value defining the number of rows of the data set being analysed. |
decay |
A double value that is the exponent value of the decaying function. |
This function takes in the number of rows of a data set being analysed plus a decay factor which is just an exponent value, then the values of this vector are normalised to 1 so their weights total 1. (The higher the decay value, the more weighted to the closest values to the left of the vector become.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.