public abstract class UpdateDoublesSketch 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 |
---|---|
CompactDoublesSketch |
compact() |
CompactDoublesSketch |
compact(org.apache.datasketches.memory.WritableMemory dstMem)
Returns a compact version of this sketch.
|
static UpdateDoublesSketch |
heapify(org.apache.datasketches.memory.Memory srcMem) |
abstract void |
update(double item)
Updates this sketch with the given double data item
|
static UpdateDoublesSketch |
wrap(org.apache.datasketches.memory.WritableMemory srcMem)
Wrap this sketch around the given non-compact Memory image of a DoublesSketch.
|
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, isReadOnly, isSameResource, iterator, putMemory, putMemory, reset, 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 UpdateDoublesSketch wrap(org.apache.datasketches.memory.WritableMemory srcMem)
srcMem
- the given Memory image of a DoublesSketch that may have data,public abstract void update(double item)
item
- an item from a stream of items. NaNs are ignored.public static UpdateDoublesSketch heapify(org.apache.datasketches.memory.Memory srcMem)
public CompactDoublesSketch compact()
public CompactDoublesSketch compact(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- An optional target memory to hold the sketch.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.