Class DblArrayCountHashMap


  • public class DblArrayCountHashMap
    extends Object
    • Constructor Detail

      • DblArrayCountHashMap

        public DblArrayCountHashMap​(int init_capacity,
                                    int cols)
    • Method Detail

      • size

        public int size()
      • increment

        public int increment​(DblArray key)
        Increment the key, and return the Id of the value incremented.
        Parameters:
        key - DblArray key
        Returns:
        The Unique ID of the value contained.
      • get

        public int get​(DblArray key)
        Get the value on a key, if the key is not inside a NullPointerException is thrown.
        Parameters:
        key - the key to lookup
        Returns:
        count on key
      • replaceWithUIDs

        public void replaceWithUIDs()
      • getSumCounts

        public int getSumCounts()
      • getUnorderedCountsAndReplaceWithUIDs

        public int[] getUnorderedCountsAndReplaceWithUIDs()
      • getUnorderedCountsAndReplaceWithUIDsWithExtraCell

        public int[] getUnorderedCountsAndReplaceWithUIDsWithExtraCell()
      • reset

        public void reset​(int size)