Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EMA ¶
type EMA struct {
// contains filtered or unexported fields
}
Implement an exponentially moving average to the likes of the writer. Because there's millions of implementations so what's wrong with yet another one.
func NewEMA ¶
New Exponentially Moving Average. The argument is the amount of samples we'll keep, and it's defined as the number for which the n-th old sample would have a weight of 5%, the point at which we discard it. The 0-th sample has got a weight of 1.
Click to show internal directories.
Click to hide internal directories.