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.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binCounts(): Seq[(T, Long)]
Return sequence of tuples pairing bin label value and to its associated count.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
minMaxValues(): Option[(T, T)]
Return the smallest and largest items seen as a tuple.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()