jsat.linear
Class VecPairedComparable<V extends Vec,P extends java.lang.Comparable<P>>
- java.lang.Object
-
- jsat.linear.Vec
-
- jsat.linear.VecPaired<V,P>
-
- jsat.linear.VecPairedComparable<V,P>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<VecPairedComparable<V,P>>, java.lang.Iterable<IndexValue>
public class VecPairedComparable<V extends Vec,P extends java.lang.Comparable<P>> extends VecPaired<V,P> implements java.lang.Comparable<VecPairedComparable<V,P>>
Utility class for usingVecPairedwhen 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description VecPairedComparable(V v, P p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(VecPairedComparable<V,P> o)-
Methods inherited from class jsat.linear.VecPaired
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
-
Methods inherited from class jsat.linear.Vec
applyFunction, applyIndexFunction, canBeMutated, copyTo, copyToCol, copyToRow, countNaNs, getNonZeroIterator, increment, iterator, multiply, multiply, mutableSubtract, mutableSubtract, random, random, subtract, zeroOut, zeros
-
-
-
-
Method Detail
-
compareTo
public int compareTo(VecPairedComparable<V,P> o)
- Specified by:
compareToin interfacejava.lang.Comparable<VecPairedComparable<V extends Vec,P extends java.lang.Comparable<P>>>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG