Skip to content

Commit 51822be

Browse files
committed
Fixed conflict
1 parent 90317f0 commit 51822be

File tree

1 file changed

+7
-4
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/aggregation/aggregators

1 file changed

+7
-4
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/aggregation/aggregators/Aggregators.kt

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import org.jetbrains.kotlinx.dataframe.math.medianConversion
1919
import org.jetbrains.kotlinx.dataframe.math.medianOrNull
2020
import org.jetbrains.kotlinx.dataframe.math.minOrNull
2121
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
2225
import org.jetbrains.kotlinx.dataframe.math.std
2326
import org.jetbrains.kotlinx.dataframe.math.stdTypeConversion
2427
import org.jetbrains.kotlinx.dataframe.math.sum
@@ -108,7 +111,7 @@ public object Aggregators {
108111

109112
// T: Comparable<T> -> T?
110113
// 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()
112115

113116
private val min by withOneOption { skipNaN: Boolean ->
114117
twoStepSelectingForAny<Comparable<Any>, Comparable<Any>?>(
@@ -147,20 +150,20 @@ public object Aggregators {
147150

148151
// T : primitive Number? -> Double?
149152
// T : Comparable<T & Any>? -> T?
150-
fun <T> percentileCommon(
153+
public fun <T> percentileCommon(
151154
percentile: Double,
152155
skipNaN: Boolean,
153156
): Aggregator<T & Any, T?>
154157
where T : Comparable<T & Any>? =
155158
this.percentile.invoke(percentile, skipNaN).cast2()
156159

157160
// 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?>
159162
where T : Comparable<T & Any>? =
160163
percentileCommon<T>(percentile, skipNaNDefault).cast2()
161164

162165
// T : primitive Number? -> Double?
163-
fun <T> percentileNumbers(
166+
public fun <T> percentileNumbers(
164167
percentile: Double,
165168
skipNaN: Boolean,
166169
): Aggregator<T & Any, Double?>

0 commit comments

Comments
 (0)