public class SlidingWindowMaxAccumulator extends AbstractSlidingWindowAccumulator<Double>
Constructor and Description |
---|
SlidingWindowMaxAccumulator(int windowSize)
Creates a new maximum accumulator with the sliding window of a given size.
|
Modifier and Type | Method and Description |
---|---|
Double |
getResult()
Gets the accumulated result of currently added values.
|
add, reset
public SlidingWindowMaxAccumulator(int windowSize)
windowSize
- Size of the sliding window.public Double getResult()
Accumulator
Copyright © 2010–2017 PerfCake Community. All rights reserved.