Class BigIntegerQuantizer

    • Method Detail

      • withCompressionFactor

        public static Quantizer<BigInteger> withCompressionFactor​(int compressionFactor)
        Returns a Quantizer which converts the input value to the nearest multiple of the compression factor, in the direction towards zero.

        Examples (compression factor 5):

        • Input value 0 -> 0
        • Input value 4 -> 0
        • Input value 5 -> 5
        • Input value 9 -> 5
        • Input value -4 -> 0
        • Input value -5 -> -5
        • Input value -9 -> -5
        Parameters:
        compressionFactor - The number of adjacent mathematical integers (>= 2) to coalesce to a single key
        Returns:
        A Quantizer which converts the input value to the nearest multiple of the compression factor, in the direction towards zero