HistogramBuilder

interface HistogramBuilder<in T : Any, V : Any>

Functions

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

Inheritors

Link copied to clipboard

Extensions

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(point: Point<out T>)
fun <T : Any> HistogramBuilder<T, *>.put(vararg point: T)
fun HistogramBuilder<Double, *>.put(vararg point: Number)
fun HistogramBuilder<Double, *>.put(vararg point: Double)

Sources

Link copied to clipboard