Class FloatSprintzEncoder

    • Field Detail

      • values

        protected Vector<Float> values
        we save all value in a list and calculate its bitwidth.
    • Constructor Detail

      • FloatSprintzEncoder

        public FloatSprintzEncoder()
    • Method Detail

      • getOneItemMaxSize

        public int getOneItemMaxSize()
        Description copied from class: Encoder
        When encoder accepts a new incoming data point, the maximal possible size in byte it takes to store in memory.
        Overrides:
        getOneItemMaxSize in class Encoder
        Returns:
        the maximal possible size of one data item encoded by this encoder
      • getMaxByteSize

        public long getMaxByteSize()
        Description copied from class: Encoder
        The maximal possible memory size occupied by current Encoder. This statistic value doesn't involve OutputStream.
        Overrides:
        getMaxByteSize in class Encoder
        Returns:
        the maximal size of possible memory occupied by current encoder
      • delta

        protected int delta​(Float value,
                            Float preValue)
      • fire

        protected int fire​(Float value,
                           Float preValue)