com.netflix.atlas.core.algorithm
Rolling buffer to keep track of the input for a given window.
Minimum number of values that must be present within the buffer for an average to be emitted. If there are not enough non-NaN values, then NaN will be emitted.
Rolling buffer to keep track of the input for a given window.
Returns true if the state is the same as if it had been reset.
Returns true if the state is the same as if it had been reset. This means that the state does not need to be stored and can just be recreated if a new values shows up. When processing a stream this is needed to avoid a memory leak for state objects if there are some transient values associated with a group by. This check becomes the effective lifespan for the state if no data is received for a given interval.
Minimum number of values that must be present within the buffer for an average to be emitted.
Minimum number of values that must be present within the buffer for an average to be emitted. If there are not enough non-NaN values, then NaN will be emitted.
Apply the next value from the input and return the computed value.
Apply the next value from the input and return the computed value.
Reset the state of the algorithm.
Reset the state of the algorithm.
Capture the current state of the algorithm.
Capture the current state of the algorithm. It can be restored in a new instance with the [OnlineAlgorithm#apply] method.
(Since version ) see corresponding Javadoc for more information.
Mean of the values within a moving window of the input. The denominator is the number of values (non-NaN entries) in the rolling buffer.
Rolling buffer to keep track of the input for a given window.
Minimum number of values that must be present within the buffer for an average to be emitted. If there are not enough non-NaN values, then NaN will be emitted.