Interface SortedView

    • Method Detail

      • getCumulativeWeights

        long[] getCumulativeWeights()
        Returns the array of cumulative weights from the sketch. Also known as the natural ranks, which are the Natural Numbers on the interval [1, N].
        Returns:
        the array of cumulative weights (or natural ranks).
      • getN

        long getN()
        Returns the total number of items presented to the sourcing sketch.
        Returns:
        the total number of items presented to the sourcing sketch.
      • isEmpty

        boolean isEmpty()
        Returns true if this sorted view is empty.
        Returns:
        true if this sorted view is empty.
      • iterator

        SortedViewIterator iterator()
        Returns an iterator for this Sorted View.
        Returns:
        an iterator for this Sorted View.