Class BitTreeEncoder


  • public class BitTreeEncoder
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private short[] Models  
      private int NumBitLevels  
    • Constructor Summary

      Constructors 
      Constructor Description
      BitTreeEncoder​(int numBitLevels)  
    • Field Detail

      • Models

        private final short[] Models
      • NumBitLevels

        private final int NumBitLevels
    • Constructor Detail

      • BitTreeEncoder

        public BitTreeEncoder​(int numBitLevels)
    • Method Detail

      • init

        public void init()
      • encode

        public void encode​(Encoder rangeEncoder,
                           int symbol)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • reverseEncode

        public void reverseEncode​(Encoder rangeEncoder,
                                  int symbol)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getPrice

        public int getPrice​(int symbol)
      • reverseGetPrice

        public int reverseGetPrice​(int symbol)
      • reverseGetPrice

        public static int reverseGetPrice​(short[] Models,
                                          int startIndex,
                                          int NumBitLevels,
                                          int symbol)
      • reverseEncode

        public static void reverseEncode​(short[] Models,
                                         int startIndex,
                                         Encoder rangeEncoder,
                                         int NumBitLevels,
                                         int symbol)
                                  throws java.io.IOException
        Throws:
        java.io.IOException