trait Histogram[T <: AnyVal] extends Serializable
Data object representing a histogram of values.
- Alphabetic
- By Inheritance
- Histogram
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
bucketCount(): Int
The number of buckets utilized by this Histogram.
-
abstract
def
cdf(): Array[(Double, Double)]
CDF of the distribution.
-
abstract
def
foreach(f: (T, Long) ⇒ Unit): Unit
Execute the given function on the value and count of each bucket in the histogram.
-
abstract
def
foreachValue(f: (T) ⇒ Unit): Unit
Execute the given function on the value of each bucket in the histogram.
Execute the given function on the value of each bucket in the histogram.
- f
A unit function of one parameter
-
abstract
def
itemCount(item: T): Long
Return the number of occurrences for 'item'.
-
abstract
def
maxBucketCount(): Int
Return the maximum number of buckets of this histogram.
-
abstract
def
maxValue(): Option[T]
Return the largest item seen.
-
abstract
def
mean(): Option[Double]
Compute the mean of the distribution represented by the histogram.
-
abstract
def
median(): Option[T]
Compute the median of the distribution represented by the histogram.
-
abstract
def
merge(histogram: Histogram[T]): Histogram[T]
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).
-
abstract
def
minValue(): Option[T]
Return the smallest item seen.
-
abstract
def
mode(): Option[T]
Compute the mode of the distribution represented by the histogram.
-
abstract
def
mutable(): MutableHistogram[T]
Return a mutable copy of this histogram.
-
abstract
def
quantileBreaks(num: Int): Array[T]
Compute the quantile breaks of the histogram, where the latter are evenly spaced in 'num' increments starting at zero percent.
-
abstract
def
rawValues(): Array[T]
Return an array containing the values seen by this histogram.
-
abstract
def
statistics(): Option[Statistics[T]]
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.
-
abstract
def
totalCount(): Long
Return the total number of occurrences for all items.
-
abstract
def
values(): Array[T]
Return a sorted array of values seen by this histogram.