uniformNDFromRanges

fun <V : Any, A : Field<V>> Histogram.Companion.uniformNDFromRanges(valueAlgebraND: FieldOpsND<V, A>, vararg ranges: ClosedFloatingPointRange<Double>, bufferFactory: BufferFactory<V> = Buffer.Companion::boxing): UniformHistogramGroupND<V, A>

Use it like

FastHistogram.fromRanges(
(-1.0..1.0),
(-1.0..1.0)
)

fun <V : Any, A : Field<V>> Histogram.Companion.uniformNDFromRanges(valueAlgebraND: FieldOpsND<V, A>, vararg ranges: Pair<ClosedFloatingPointRange<Double>, Int>, bufferFactory: BufferFactory<V> = Buffer.Companion::boxing): UniformHistogramGroupND<V, A>

Use it like

FastHistogram.fromRanges(
(-1.0..1.0) to 50,
(-1.0..1.0) to 32
)