func New(period time.Duration) *ExponentialMovingAverage {
	return &ExponentialMovingAverage{
		mu:     sync.Mutex{},
		t:      time.Now(),
		period: period.Seconds(),
	}
}
NewExponentialMovingAverage creates an EMA for a given period
package movingaverage
import (
	"math"
	"sync"
	"time"
)
type ExponentialMovingAverage struct {
	mu     sync.Mutex
	v      float64
	t      time.Time
	period float64
}