public abstract class UpdateDoublesSketch extends DoublesSketch
rand| Modifier and Type | Method and Description |
|---|---|
CompactDoublesSketch |
compact() |
CompactDoublesSketch |
compact(Memory dstMem)
Returns a comapct version of this sketch.
|
static UpdateDoublesSketch |
heapify(Memory srcMem) |
abstract void |
reset()
Resets this sketch to the empty state, but retains the original value of k.
|
abstract void |
update(double dataItem)
Updates this sketch with the given double data item
|
builder, downSample, getCDF, getCompactStorageBytes, getCompactStorageBytes, getK, getMaxValue, getMinValue, getN, getNormalizedRankError, getNormalizedRankError, getPMF, getQuantile, getQuantiles, getQuantiles, getRetainedItems, getStorageBytes, getUpdatableStorageBytes, getUpdatableStorageBytes, isDirect, isEmpty, isEstimationMode, putMemory, putMemory, toByteArray, toByteArray, toString, toString, wrappublic abstract void update(double dataItem)
dataItem - an item from a stream of items. NaNs are ignored.public abstract void reset()
public static UpdateDoublesSketch heapify(Memory srcMem)
public CompactDoublesSketch compact()
public CompactDoublesSketch compact(Memory dstMem)
dstMem - An optional target memory to hold the sketch.Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.