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, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCDF, getPMF, getQuantile, getQuantiles, getRank, getRankspublic static CompactDoublesSketch heapify(org.apache.datasketches.memory.Memory srcMem)
public boolean isReadOnly()
QuantilesAPIisReadOnly in interface QuantilesAPIisReadOnly in class DoublesSketchpublic void reset()
DoublesSketchThe parameter k will not change.
The parameter k will not change.
reset in interface QuantilesAPIreset in class DoublesSketchpublic void update(double quantile)
QuantilesDoublesAPIquantile - from a stream of items. NaNs are ignored.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.