Package-level declarations

Types

Link copied to clipboard
interface Bin<in T : Any, out V> : Domain<T>

The binned data element. Could be a histogram bin with a number of counts or an artificial construct.

Link copied to clipboard
data class Bin1D<T : Comparable<T>, out V>(val domain: Domain1D<T>, val binValue: V) : Bin<T, V> , ClosedRange<T>

A univariate bin based on a range

Link copied to clipboard
interface Counter<T : Any>

Common representation for atomic counters

Link copied to clipboard
data class DomainBin<in T : Comparable<T>, D : Domain<T>, out V>(val domain: D, val binValue: V) : Bin<T, V> , Domain<T>

A simple histogram bin based on domain

Link copied to clipboard
interface Histogram<in T : Any, out V, out B : Bin<T, V>>
Link copied to clipboard
interface Histogram1D<T : Comparable<T>, V> : Histogram<T, V, Bin1D<T, V>>
Link copied to clipboard
interface Histogram1DBuilder<in T : Any, V : Any> : HistogramBuilder<T, V>
Link copied to clipboard
interface HistogramBuilder<in T : Any, V : Any>
Link copied to clipboard

A space for producing histograms with values in a NDStructure

Link copied to clipboard
class HistogramND<T : Comparable<T>, D : Domain<T>, V : Any>(val group: HistogramGroupND<T, D, V>, values: StructureND<V>) : Histogram<T, V, DomainBin<T, D, V>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ObjectCounter<T : Any>(group: Group<T>) : Counter<T>
Link copied to clipboard

A histogram based on a tree map of values

Link copied to clipboard
class TreeHistogramGroup<V : Any, A : Ring<V>, ScaleOperations<V>>(val valueAlgebra: A, binFactory: (Double) -> DoubleDomain1D) : Group<TreeHistogram<V>> , ScaleOperations<TreeHistogram<V>>

A space for univariate histograms with variable bin borders based on a tree map

Link copied to clipboard
class UniformHistogram1D<V : Any>(val group: UniformHistogram1DGroup<V, *>, values: Map<Int, V>) : Histogram1D<Double, V>
Link copied to clipboard
class UniformHistogram1DGroup<V : Any, A : Ring<V>, ScaleOperations<V>>(val valueAlgebra: A, val binSize: Double, val startPoint: Double = 0.0) : Group<Histogram1D<Double, V>> , ScaleOperations<Histogram1D<Double, V>>

An algebra for uniform histograms in 1D real space

Link copied to clipboard
class UniformHistogramGroupND<V : Any, A : Field<V>>(val valueAlgebraND: FieldOpsND<V, A>, lower: Buffer<Double>, upper: Buffer<Double>, binNums: IntArray = IntArray(lower.size) { 20 }, valueBufferFactory: BufferFactory<V> = valueAlgebraND.elementAlgebra.bufferFactory) : HistogramGroupND<Double, HyperSquareDomain, V>

Multivariate histogram space for hyper-square real-field bins.

Functions

Link copied to clipboard

Create a histogram group with custom cell borders

Link copied to clipboard
operator fun IntCounter.dec(): IntCounter
operator fun LongCounter.dec(): LongCounter
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
operator fun IntCounter.inc(): IntCounter
operator fun LongCounter.inc(): LongCounter
Link copied to clipboard
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
fun <V : Any, A : Ring<V>, ScaleOperations<V>> Histogram.Companion.uniform1D(valueAlgebra: A, binSize: Double, startPoint: Double = 0.0): UniformHistogram1DGroup<V, A>
Link copied to clipboard
fun <V : Any, A : Field<V>> Histogram.Companion.uniformNDFromRanges(valueAlgebraND: FieldOpsND<V, A>, vararg ranges: Pair<ClosedFloatingPointRange<Double>, Int>, bufferFactory: BufferFactory<V> = valueAlgebraND.elementAlgebra.bufferFactory): UniformHistogramGroupND<V, A>
fun <V : Any, A : Field<V>> Histogram.Companion.uniformNDFromRanges(valueAlgebraND: FieldOpsND<V, A>, vararg ranges: ClosedFloatingPointRange<Double>, bufferFactory: BufferFactory<V> = valueAlgebraND.elementAlgebra.bufferFactory): UniformHistogramGroupND<V, A>

Use it like

Properties

Link copied to clipboard

Map of bin centers to bin values

Link copied to clipboard