ETA: correct description of age param.
Vladimir Bauer
8 years ago
| 223 | 223 | // |
| 224 | 224 | // `style` one of [ET_STYLE_GO|ET_STYLE_HHMMSS|ET_STYLE_HHMM|ET_STYLE_MMSS] |
| 225 | 225 | // |
| 226 | // `age` is a decay factor alpha for underlying ewma. | |
| 227 | // General rule of thumb, for the best value: | |
| 228 | // expected progress time in seconds divided by two. | |
| 229 | // For example expected progress duration is one hour. | |
| 230 | // age = 3600 / 2 | |
| 226 | // `age` is related to the decay factor alpha by the formula given for the DECAY constant. | |
| 227 | // It signifies the average age of the samples as time goes to infinity. Basically age is | |
| 228 | // the previous N samples to average over. If zero value provided, it defaults to 30. | |
| 231 | 229 | // |
| 232 | 230 | // `startBlock` is channel, user suppose to send time.Now() on each iteration of block start. |
| 233 | 231 | // |