Packages

class FastMapHistogram extends MutableIntHistogram

The FastMapHistogram class. Quickly compute histograms over integer data.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FastMapHistogram
  2. MutableIntHistogram
  3. IntHistogram
  4. MutableHistogram
  5. Histogram
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FastMapHistogram(_size: Int, _buckets: Array[Int], _counts: Array[Long], _used: Int, _total: Long)

Value Members

  1. def binCounts(): Seq[(Int, Long)]

    Return sequence of tuples pairing bin label value and to its associated count.

    Return sequence of tuples pairing bin label value and to its associated count.

    Definition Classes
    Histogram
  2. def bucketCount(): Int

    The number of buckets utilized by this FastMapHistogram.

    The number of buckets utilized by this FastMapHistogram.

    Definition Classes
    FastMapHistogramHistogram
  3. def cdf(): Array[(Double, Double)]

    CDF of the distribution.

    CDF of the distribution.

    Definition Classes
    FastMapHistogramHistogram
  4. def countItem(item: Int, count: Long): Unit

    For the value 'item', register the appearance of 'count' more instances of it.

    For the value 'item', register the appearance of 'count' more instances of it.

    Definition Classes
    FastMapHistogramMutableHistogram
  5. def countItem(item: Int): Unit

    Note the occurance of 'item'.

    Note the occurance of 'item'.

    Definition Classes
    MutableHistogram
  6. def countItemInt(item: Int, count: Long): Unit

    Note the occurance of 'item'.

    Note the occurance of 'item'.

    The optional parameter 'count' allows histograms to be built more efficiently. Negative counts can be used to remove a particular number of occurances of 'item'.

    Definition Classes
    MutableIntHistogramMutableHistogram
  7. def countItemInt(item: Int): Unit

    Note the occurance of 'item'.

    Note the occurance of 'item'.

    Definition Classes
    MutableHistogram
  8. def foreach(f: (Int, Long) ⇒ Unit): Unit

    Execute the given function on the value and count of each bucket in the histogram.

    Execute the given function on the value and count of each bucket in the histogram.

    Definition Classes
    IntHistogramHistogram
  9. def foreachValue(f: (Int) ⇒ Unit): Unit

    Execute the given function on each value seen by the histogram.

    Execute the given function on each value seen by the histogram.

    f

    A unit function of one integer parameter

    Definition Classes
    FastMapHistogramHistogram
  10. def itemCount(item: Int): Long

    The total number of items seen by this histogram.

    The total number of items seen by this histogram.

    Definition Classes
    FastMapHistogramHistogram
  11. def maxBucketCount(): Int

    The maximum number of buckets this histogram can hold.

    The maximum number of buckets this histogram can hold.

    Definition Classes
    FastMapHistogramHistogram
  12. def maxValue(): Option[Int]

    Returns the largest value seen by the histogram, if it has seen any values.

    Returns the largest value seen by the histogram, if it has seen any values.

    Definition Classes
    FastMapHistogramHistogram
  13. def mean(): Option[Double]

    Compute the mean of the distribution represented by the histogram.

    Compute the mean of the distribution represented by the histogram.

    Definition Classes
    IntHistogramHistogram
  14. def median(): Option[Int]

    Compute the median of the distribution represented by the histogram.

    Compute the median of the distribution represented by the histogram.

    Definition Classes
    IntHistogramHistogram
  15. def merge(histogram: Histogram[Int]): FastMapHistogram

    Return the sum of this histogram and the given one (the sum is the histogram that would result from seeing all of the values seen by the two antecedent histograms).

    Return the sum of this histogram and the given one (the sum is the histogram that would result from seeing all of the values seen by the two antecedent histograms).

    Definition Classes
    FastMapHistogramHistogram
  16. def minMaxValues(): Option[(Int, Int)]

    Return the smallest and largest values seen by the histogram, if it has seen any values.

    Return the smallest and largest values seen by the histogram, if it has seen any values.

    Definition Classes
    FastMapHistogramHistogram
  17. def minValue(): Option[Int]

    Returns the smallest value seen by the histogram, if it has seen any values.

    Returns the smallest value seen by the histogram, if it has seen any values.

    Definition Classes
    FastMapHistogramHistogram
  18. def mode(): Option[Int]

    Compute the mode of the distribution represented by the histogram.

    Compute the mode of the distribution represented by the histogram.

    Definition Classes
    IntHistogramHistogram
  19. def mutable(): FastMapHistogram

    Return a mutable copy of the present FastMapHistogram.

    Return a mutable copy of the present FastMapHistogram.

    Definition Classes
    FastMapHistogramHistogram
  20. def quantileBreaks(num: Int): Array[Int]

    Compute the quantile breaks of the histogram, where the latter are evenly spaced in 'num' increments starting at zero percent.

    Compute the quantile breaks of the histogram, where the latter are evenly spaced in 'num' increments starting at zero percent.

    Definition Classes
    MutableIntHistogramMutableHistogramHistogram
  21. def rawValues(): Array[Int]

    Return an integer array containing the values seen by this histogram.

    Return an integer array containing the values seen by this histogram.

    Definition Classes
    FastMapHistogramHistogram
  22. def setItem(item: Int, count: Long): Unit

    Adjust the histogram so that that it is as if the given value 'item' has been seen 'count' times.

    Adjust the histogram so that that it is as if the given value 'item' has been seen 'count' times.

    Definition Classes
    FastMapHistogramMutableHistogram
  23. def statistics(): Option[Statistics[Int]]

    Return a statistics object for the distribution represented by the histogram.

    Return a statistics object for the distribution represented by the histogram. Contains among other things: mean, mode, median, and so-forth.

    Definition Classes
    IntHistogramHistogram
  24. def totalCount(): Long

    Return the total number of occurrences for all items.

    Return the total number of occurrences for all items.

    Definition Classes
    FastMapHistogramHistogram
  25. def uncountItem(item: Int): Unit

    Forget any encounters with the value 'item'.

    Forget any encounters with the value 'item'.

    Definition Classes
    FastMapHistogramMutableHistogram
  26. def update(other: Histogram[Int]): Unit

    Update this histogram with the entries from the other one.

    Update this histogram with the entries from the other one.

    Definition Classes
    MutableIntHistogramMutableHistogram
  27. def values(): Array[Int]

    Return a sorted integer array of values seen by this histogram.

    Return a sorted integer array of values seen by this histogram.

    Definition Classes
    FastMapHistogramHistogram