Class StabilityDetector
java.lang.Object
io.nosqlbench.scenarios.simframe.stabilization.StabilityDetector
-
Constructor Summary
ConstructorsConstructorDescriptionStabilityDetector(double timeSliceSeconds, double minThreshold, DoubleSupplier source, Supplier<String> summary, int... windows) Configure a stability checker that reads values from a source on some timed loop, computes the streaming standard deviation, computes the ratio of stabilization between values from longer windows to shorter windows, and returns from its run method once the computed ratio is higher than the min threshold. -
Method Summary
-
Constructor Details
-
StabilityDetector
public StabilityDetector(double timeSliceSeconds, double minThreshold, DoubleSupplier source, Supplier<String> summary, int... windows) Configure a stability checker that reads values from a source on some timed loop, computes the streaming standard deviation, computes the ratio of stabilization between values from longer windows to shorter windows, and returns from its run method once the computed ratio is higher than the min threshold.- Parameters:
timeSliceSeconds- How frequently to gather a sample. 0.1 is recommended to startminThreshold- The unit interval fractional stability measurement which must be met at a minimum in order to stop polling for stabilitysource- The source of data to be added to the streaming std dev computationswindows- The size of each window in the set of diminishing sizes. These contain the last N samples by size, respectively.
-
-
Method Details
-
apply
public void apply(double value) -
run
-
stabilitySummary
-
toString
-