public abstract class CompactDoublesSketch extends DoublesSketch
EMPTY_MSG, MEM_REQ_SVR_NULL_MSG, NOT_SINGLE_ITEM_MSG, SELF_MERGE_MSG, TGT_IS_READ_ONLY_MSG, UNSUPPORTED_MSG
Modifier and Type | Method and Description |
---|---|
static CompactDoublesSketch |
heapify(org.apache.datasketches.memory.Memory srcMem) |
boolean |
isReadOnly()
Returns true if this sketch is read only.
|
void |
reset()
Resets this sketch to the empty state.
|
void |
update(double quantile)
Updates this sketch with the given item.
|
builder, downSample, getCDF, getCompactSerialiedSizeBytes, getCurrentCompactSerializedSizeBytes, getCurrentUpdatableSerializedSizeBytes, getK, getKFromEpsilon, getMaxItem, getMinItem, getN, getNormalizedRankError, getNormalizedRankError, getNumRetained, getPMF, getQuantile, getQuantileLowerBound, getQuantiles, getQuantileUpperBound, getRank, getRankLowerBound, getRanks, getRankUpperBound, getSerializedSizeBytes, getSortedView, getUpdatableStorageBytes, hasMemory, isDirect, isEmpty, isEstimationMode, isSameResource, iterator, putMemory, putMemory, toByteArray, toByteArray, toString, toString, toString, toString, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCDF, getPMF, getQuantile, getQuantiles, getRank, getRanks
public static CompactDoublesSketch heapify(org.apache.datasketches.memory.Memory srcMem)
public boolean isReadOnly()
QuantilesAPI
isReadOnly
in interface QuantilesAPI
isReadOnly
in class DoublesSketch
public void reset()
DoublesSketch
The parameter k will not change.
The parameter k will not change.
reset
in interface QuantilesAPI
reset
in class DoublesSketch
public void update(double quantile)
QuantilesDoublesAPI
quantile
- from a stream of items. NaNs are ignored.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.