fromRanges

fun fromRanges(vararg ranges: ClosedFloatingPointRange<Double>): DoubleHistogramSpace

Use it like

FastHistogram.fromRanges(
(-1.0..1.0),
(-1.0..1.0)
)
fun fromRanges(vararg ranges: Pair<ClosedFloatingPointRange<Double>, Int>): DoubleHistogramSpace

Use it like

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