func (e *SimpleEWMA) Add(value float64) {
	if e.value == 0 { // this is a proxy for "uninitialized"
		e.value = value
	} else {
		e.value = (value * DECAY) + (e.value * (1 - DECAY))
	}
}
func (e *SimpleEWMA) Add(value float64) {
	if e.value == 0 { 
		e.value = value
	} else {
		e.value = (value * DECAY) + (e.value * (1 - DECAY))
	}
}
func ( e * SimpleEWMA ) Add ( value float64 ) { if e . value == 0 { // this is a proxy for "uninitialized" e . value = value } else { e . value = ( value * DECAY ) + ( e . value * ( 1 - DECAY ) ) } }
// Add adds a value to the series and updates the moving average.
Add adds a value to the series and updates the moving average .