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).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      RowHashKey(Matrix matrix, int rowIndex) Creates a hash key for a specific row in a matrix
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int hashCode()
      boolean equals(Object obj)
      int compareTo(RowHashKey other)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 row
        rowIndex - The index of the row to use as key