|Constructor and Description|
Constructs a vector rank utility.
|Modifier and Type||Method and Description|
Given a rank r, gets the index of the element that is the rth smallest in the vector.
public VectorRank(BufferAllocator allocator)
allocator- the allocator to use.
public int indexAtRank(V vector, VectorValueComparator<V> comparator, int rank)
vector- the vector from which to get the element index.
comparator- the criteria for vector element comparison.
rank- the rank to determine.
Copyright © 2022 The Apache Software Foundation. All rights reserved.