Class DoubleCountHashMap


  • public class DoubleCountHashMap
    extends Object
    • Constructor Detail

      • DoubleCountHashMap

        public DoubleCountHashMap​(int init_capacity)
    • Method Detail

      • size

        public int size()
      • increment

        public final int increment​(double key)
      • increment

        public final int increment​(double key,
                                   int count)
      • get

        public int get​(double 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
      • getOrDefault

        public int getOrDefault​(double key,
                                int def)
      • extractValues

        public DCounts[] extractValues()
      • replaceWithUIDs

        public void replaceWithUIDs()
      • replaceWithUIDsNoZero

        public void replaceWithUIDsNoZero()
      • getUnorderedCountsAndReplaceWithUIDs

        public int[] getUnorderedCountsAndReplaceWithUIDs()
      • getUnorderedCountsAndReplaceWithUIDsWithout0

        public int[] getUnorderedCountsAndReplaceWithUIDsWithout0()
      • getMostFrequent

        public double getMostFrequent()
      • getDictionary

        public double[] getDictionary()
      • reset

        public void reset​(int size)