protected override double calculate() { Bomb.unless(values.hasContent(), () => "use of uninitialized spud in StatisticsSpud"); var array = windowSize == INFINITE?values.toArray() : values.toArray(windowSize); return(statistic.evaluate(array)); }
protected override T calculate() { Bomb.unless(values.hasContent(), () => "use of uninitialized spud in AggregatorSpud"); var array = windowSize == Window.INFINITE ? values.toArray() : values.toArray(windowSize); return(aggregate(array)); }