public EWMA(double alpha,long interval,TimeUnit intervalUnit){
  this.interval=intervalUnit.toNanos(interval);
  this.alpha=alpha;
}

public EWMA ( double alpha , long interval , TimeUnit intervalUnit ) { this . interval = intervalUnit . toNanos ( interval ) ; this . alpha = alpha ; }
create a new ewma with a specific smoothing constant .
