Histogram1DBuilder

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(at: T, value: V = defaultValue)

Thread safe put operation

open override fun putValue(point: Point<out T>, value: V)

Increment appropriate bin with given value

Properties

Link copied to clipboard
abstract val defaultValue: V

The default value increment for a bin