@@ -19,6 +19,9 @@ import org.jetbrains.kotlinx.dataframe.math.medianConversion
19
19
import org.jetbrains.kotlinx.dataframe.math.medianOrNull
20
20
import org.jetbrains.kotlinx.dataframe.math.minOrNull
21
21
import org.jetbrains.kotlinx.dataframe.math.minTypeConversion
22
+ import org.jetbrains.kotlinx.dataframe.math.percentileConversion
23
+ import org.jetbrains.kotlinx.dataframe.math.percentileOrNull
24
+ import org.jetbrains.kotlinx.dataframe.math.indexOfPercentile
22
25
import org.jetbrains.kotlinx.dataframe.math.std
23
26
import org.jetbrains.kotlinx.dataframe.math.stdTypeConversion
24
27
import org.jetbrains.kotlinx.dataframe.math.sum
@@ -108,7 +111,7 @@ public object Aggregators {
108
111
109
112
// T: Comparable<T> -> T?
110
113
// T : Comparable<T & Any>? -> T?
111
- fun <T : Comparable <T & Any >? > min (skipNaN : Boolean ): Aggregator <T & Any , T ?> = min.invoke(skipNaN).cast2()
114
+ public fun <T : Comparable <T & Any >? > min (skipNaN : Boolean ): Aggregator <T & Any , T ?> = min.invoke(skipNaN).cast2()
112
115
113
116
private val min by withOneOption { skipNaN: Boolean ->
114
117
twoStepSelectingForAny<Comparable <Any >, Comparable <Any >? > (
@@ -147,20 +150,20 @@ public object Aggregators {
147
150
148
151
// T : primitive Number? -> Double?
149
152
// T : Comparable<T & Any>? -> T?
150
- fun <T > percentileCommon (
153
+ public fun <T > percentileCommon (
151
154
percentile : Double ,
152
155
skipNaN : Boolean ,
153
156
): Aggregator <T & Any , T ?>
154
157
where T : Comparable <T & Any >? =
155
158
this .percentile.invoke(percentile, skipNaN).cast2()
156
159
157
160
// T : Comparable<T & Any>? -> T?
158
- fun <T > percentileComparables (percentile : Double ): Aggregator <T & Any , T ?>
161
+ public fun <T > percentileComparables (percentile : Double ): Aggregator <T & Any , T ?>
159
162
where T : Comparable <T & Any >? =
160
163
percentileCommon<T >(percentile, skipNaNDefault).cast2()
161
164
162
165
// T : primitive Number? -> Double?
163
- fun <T > percentileNumbers (
166
+ public fun <T > percentileNumbers (
164
167
percentile : Double ,
165
168
skipNaN : Boolean ,
166
169
): Aggregator <T & Any , Double ?>
0 commit comments