public final class KllDoublesSketchSortedView extends Object implements DoublesSortedView
| Constructor and Description |
|---|
KllDoublesSketchSortedView(KllDoublesSketch sk)
Constructs this Sorted View given the sketch
|
| Modifier and Type | Method and Description |
|---|---|
long[] |
getCumulativeWeights()
Returns the array of cumulative weights
|
double |
getQuantile(double rank,
QuantileSearchCriteria searchCrit)
Gets the approximate quantile of the given normalized rank and the given search criterion.
|
double[] |
getQuantiles()
Returns the array of quantiles.
|
double |
getRank(double quantile,
QuantileSearchCriteria searchCrit)
Gets the normalized rank corresponding to the given a quantile.
|
boolean |
isEmpty()
Returns true if this sorted view is empty.
|
KllDoublesSketchSortedViewIterator |
iterator()
Returns an iterator for this Sorted View.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCDF, getPMFpublic KllDoublesSketchSortedView(KllDoublesSketch sk)
sk - the given KllDoublesSketch.public double getQuantile(double rank,
QuantileSearchCriteria searchCrit)
DoublesSortedViewgetQuantile in interface DoublesSortedViewrank - the given normalized rank, a double in the range [0.0, 1.0].searchCrit - If INCLUSIVE, the given rank includes all quantiles ≤
the quantile directly corresponding to the given rank.
If EXCLUSIVE, he given rank includes all quantiles <
the quantile directly corresponding to the given rank.QuantileSearchCriteriapublic double getRank(double quantile,
QuantileSearchCriteria searchCrit)
DoublesSortedViewgetRank in interface DoublesSortedViewquantile - the given quantilesearchCrit - if INCLUSIVE the given quantile is included into the rank.QuantileSearchCriteriapublic long[] getCumulativeWeights()
SortedViewgetCumulativeWeights in interface SortedViewpublic double[] getQuantiles()
DoublesSortedViewgetQuantiles in interface DoublesSortedViewpublic boolean isEmpty()
SortedViewisEmpty in interface SortedViewpublic KllDoublesSketchSortedViewIterator iterator()
SortedViewiterator in interface DoublesSortedViewiterator in interface SortedViewCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.