Add inline to histogram builders

This commit is contained in:
Alexander Nozik 2021-12-18 21:57:06 +03:00
parent 24799a691f
commit e11df4fdd5
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -42,7 +42,7 @@ public interface UnivariateHistogram : Histogram<Double, UnivariateBin> {
/**
* Build and fill a [UnivariateHistogram]. Returns a read-only histogram.
*/
public fun uniform(
public inline fun uniform(
binSize: Double,
start: Double = 0.0,
builder: UnivariateHistogramBuilder.() -> Unit,
@ -51,7 +51,7 @@ public interface UnivariateHistogram : Histogram<Double, UnivariateBin> {
/**
* Build and fill a histogram with custom borders. Returns a read-only histogram.
*/
public fun custom(
public inline fun custom(
borders: DoubleArray,
builder: UnivariateHistogramBuilder.() -> Unit,
): UnivariateHistogram = TreeHistogramSpace.custom(borders).fill(builder)