HistogramBuilder

interface HistogramBuilder<in T : Any, V : Any>(source)

Inheritors

Functions

Link copied to clipboard
fun <T : Any> HistogramBuilder<T, *>.fill(sequence: Iterable<Point<T>>)

fun <T : Any> HistogramBuilder<T, *>.fill(block: suspend SequenceScope<Point<T>>.() -> Unit)

Pass a sequence builder into histogram

Link copied to clipboard
fun <T : Any> HistogramBuilder<T, *>.put(vararg point: T)
fun <T : Any> HistogramBuilder<T, *>.put(point: Point<out T>)
fun HistogramBuilder<Double, *>.put(vararg point: Number)
fun HistogramBuilder<Double, *>.put(vararg point: Double)
Link copied to clipboard
abstract fun putValue(point: Point<out T>, value: V = defaultValue)

Increment appropriate bin with given value

Properties

Link copied to clipboard
abstract val defaultValue: V

The default value increment for a bin