public final class StableDataset extends ConstantDataset
StableDataset is a dataset of a Series that was a PartialDataset before it became stable
for such a long duration that it moved to a StableDataset.
In contrast to a ConstantDataset a StableDataset does have a history of observed values changes and
differing sum, minimum and maximum values. A ConstantDataset on the other hand has only ever observed the
very same value which is its minimum, maximum and average value for any number of observed values.| Constructor and Description |
|---|
StableDataset(SeriesDataset predecessor,
long time) |
| Modifier and Type | Method and Description |
|---|---|
SeriesDataset |
add(long time,
long value) |
int |
estimatedBytesMemory() |
long |
getObservedMax() |
long |
getObservedMin() |
BigInteger |
getObservedSum() |
int |
getObservedValueChanges()
Note that minimum is 1 (changing from unknown to know value).
|
int |
getStableCount() |
capacity, firstTime, getStableSince, isOutdated, lastTime, lastValue, points, sizeequals, getInstance, getObservedAvg, getObservedSince, getObservedValues, getSeries, hashCode, isStable, isStableZero, perSecond, toStringpublic StableDataset(SeriesDataset predecessor, long time)
public int getObservedValueChanges()
SeriesDatasetgetObservedValueChanges in class ConstantDatasetpublic long getObservedMax()
getObservedMax in class ConstantDatasetLong.MIN_VALUE.public long getObservedMin()
getObservedMin in class ConstantDatasetLong.MAX_VALUE.public BigInteger getObservedSum()
getObservedSum in class ConstantDatasetpublic int getStableCount()
getStableCount in class ConstantDatasetSeriesDataset.lastValue()public SeriesDataset add(long time, long value)
add in class ConstantDatasetpublic int estimatedBytesMemory()
estimatedBytesMemory in class ConstantDatasetCopyright © 2019. All rights reserved.