public class VecPairedComparable<V extends Vec,P extends Comparable<P>> extends VecPaired<V,P> implements Comparable<VecPairedComparable<V,P>>
VecPaired
when the paired value is comparable
, and the vectors need to be sorted based on their paired value. This class
performs exactly the same, and its only modification is that it is comparable
based on the paired object type.Constructor and Description |
---|
VecPairedComparable(V v,
P p) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VecPairedComparable<V,P> o) |
add, add, arrayCopy, clone, divide, dot, equals, equals, extractTrueVec, get, getNonZeroIterator, getPair, getVector, hashCode, isSparse, kurtosis, length, max, mean, median, min, multiply, multiply, mutableAdd, mutableAdd, mutableAdd, mutableDivide, mutableMultiply, mutablePairwiseDivide, mutablePairwiseMultiply, mutableSubtract, nnz, normalize, normalized, pairwiseDivide, pairwiseMultiply, pNorm, pNormDist, set, setPair, setVector, skewness, sortedCopy, standardDeviation, subtract, sum, toString, variance, vecPairedComparator
applyFunction, applyIndexFunction, canBeMutated, copyTo, copyToCol, copyToRow, countNaNs, getNonZeroIterator, increment, iterator, multiply, multiply, mutableSubtract, mutableSubtract, random, random, subtract, zeroOut, zeros
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public int compareTo(VecPairedComparable<V,P> o)
compareTo
in interface Comparable<VecPairedComparable<V extends Vec,P extends Comparable<P>>>
Copyright © 2017. All rights reserved.