Пример #1
0
        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));
        }
Пример #2
0
        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));
        }