1 | optimist_wt(size, halflife)
|
size |
The length of the array |
halflife |
The parameter for geometric time-weighting |
Uses geometric decay weighting where the last observations has weight 1/halflife, with
geometric decay. The last halflife observations have weight (1/halflife)^(size - 1).
A vector of length size with weights with total sum 1,
decaying geometrically with a factor of 1/halflife and equal weight at the tail.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.