Package jline.util
Class RowHashKey
-
- All Implemented Interfaces:
-
java.lang.Comparable
public class RowHashKey implements Comparable<T>
Efficient hash key for matrix rows used in uniqueRowIndexes operation. This class uses numeric hashing instead of string conversion for better performance with large matrices (>10,000 samples).
-
-
Constructor Summary
Constructors Constructor Description RowHashKey(Matrix matrix, int rowIndex)Creates a hash key for a specific row in a matrix
-
Method Summary
Modifier and Type Method Description inthashCode()booleanequals(Object obj)intcompareTo(RowHashKey other)-
-
Constructor Detail
-
RowHashKey
RowHashKey(Matrix matrix, int rowIndex)
Creates a hash key for a specific row in a matrix- Parameters:
matrix- The matrix containing the rowrowIndex- The index of the row to use as key
-
-
Method Detail
-
hashCode
int hashCode()
-
compareTo
int compareTo(RowHashKey other)
-
-
-
-