mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
[Test] Expose AbstractPercentilesTestCase.randomPercents()
This commit is contained in:
parent
35946a13d0
commit
c8fc30a999
@ -19,7 +19,6 @@
|
||||
|
||||
package org.elasticsearch.search.aggregations.metrics.percentiles;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.search.DocValueFormat;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregation;
|
||||
import org.elasticsearch.search.aggregations.InternalAggregationTestCase;
|
||||
@ -71,7 +70,7 @@ public abstract class AbstractPercentilesTestCase<T extends InternalAggregation
|
||||
}
|
||||
}
|
||||
|
||||
private static double[] randomPercents() {
|
||||
protected static double[] randomPercents() {
|
||||
List<Double> randomCdfValues = randomSubsetOf(randomIntBetween(1, 7), 0.01d, 0.05d, 0.25d, 0.50d, 0.75d, 0.95d, 0.99d);
|
||||
double[] percents = new double[randomCdfValues.size()];
|
||||
for (int i = 0; i < randomCdfValues.size(); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user