java.lang.Object
org.elasticsearch.tdigest.Sort
Static sorting methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreverse(TDigestDoubleArray order, int offset, int length) Reverses part of an array.static voidreverse(TDigestIntArray order, int offset, int length) Reverses part of an array.static voidstableSort(TDigestIntArray order, TDigestDoubleArray values, int n) Single-key stabilized quick sort on using an index array
-
Constructor Details
-
Sort
public Sort()
-
-
Method Details
-
stableSort
Single-key stabilized quick sort on using an index array- Parameters:
order- Indexes into valuesvalues- The values to sort.n- The number of values to sort
-
reverse
Reverses part of an array.- Parameters:
order- The array containing the data to reverse.offset- Where to start reversing.length- How many elements to reverse
-
reverse
Reverses part of an array.- Parameters:
order- The array containing the data to reverse.offset- Where to start reversing.length- How many elements to reverse
-