public class IncludeMinMax extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IncludeMinMax.DoublesPair
A simple structure to hold a pair of arrays
|
static class |
IncludeMinMax.FloatsPair
A simple structure to hold a pair of arrays
|
static class |
IncludeMinMax.ItemsPair<T>
A simple structure to hold a pair of arrays
|
static class |
IncludeMinMax.LongsPair
A simple structure to hold a pair of arrays
|
| Constructor and Description |
|---|
IncludeMinMax() |
| Modifier and Type | Method and Description |
|---|---|
static IncludeMinMax.DoublesPair |
includeDoublesMinMax(double[] quantilesIn,
long[] cumWeightsIn,
double maxItem,
double minItem)
The logic to include the min and max of type double.
|
static IncludeMinMax.FloatsPair |
includeFloatsMinMax(float[] quantilesIn,
long[] cumWeightsIn,
float maxItem,
float minItem)
The logic to include the min and max of type float.
|
static <T> IncludeMinMax.ItemsPair<T> |
includeItemsMinMax(T[] quantilesIn,
long[] cumWeightsIn,
T maxItem,
T minItem,
Comparator<? super T> comparator)
The logic to include the min and max of type T.
|
static IncludeMinMax.LongsPair |
includeLongsMinMax(long[] quantilesIn,
long[] cumWeightsIn,
long maxItem,
long minItem)
The logic to include the min and max of type double.
|
public static IncludeMinMax.DoublesPair includeDoublesMinMax(double[] quantilesIn, long[] cumWeightsIn, double maxItem, double minItem)
quantilesIn - The array of quantilescumWeightsIn - The array of associated cumulative weightsmaxItem - the maximum item of the streamminItem - the minimum item of the streampublic static IncludeMinMax.LongsPair includeLongsMinMax(long[] quantilesIn, long[] cumWeightsIn, long maxItem, long minItem)
quantilesIn - The array of quantilescumWeightsIn - The array of associated cumulative weightsmaxItem - the maximum item of the streamminItem - the minimum item of the streampublic static IncludeMinMax.FloatsPair includeFloatsMinMax(float[] quantilesIn, long[] cumWeightsIn, float maxItem, float minItem)
quantilesIn - The array of quantilescumWeightsIn - The array of associated cumulative weightsmaxItem - the maximum item of the streamminItem - the minimum item of the streampublic static <T> IncludeMinMax.ItemsPair<T> includeItemsMinMax(T[] quantilesIn, long[] cumWeightsIn, T maxItem, T minItem, Comparator<? super T> comparator)
T - the item class typequantilesIn - The array of quantilescumWeightsIn - The array of associated cumulative weightsmaxItem - the maximum item of the streamminItem - the minimum item of the streamcomparator - a comparator for type TCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.