public class BitTreeEncoder extends Object
Constructor and Description |
---|
BitTreeEncoder(int numBitLevels) |
Modifier and Type | Method and Description |
---|---|
void |
encode(RangeEncoder rangeEncoder,
int symbol) |
int |
getPrice(int symbol) |
void |
init() |
void |
reverseEncode(RangeEncoder rangeEncoder,
int symbol) |
static void |
reverseEncode(short[] Models,
int startIndex,
RangeEncoder rangeEncoder,
int NumBitLevels,
int symbol) |
int |
reverseGetPrice(int symbol) |
static int |
reverseGetPrice(short[] Models,
int startIndex,
int NumBitLevels,
int symbol) |
public void init()
public void encode(RangeEncoder rangeEncoder, int symbol) throws IOException
IOException
public void reverseEncode(RangeEncoder rangeEncoder, int symbol) throws IOException
IOException
public int getPrice(int symbol)
public int reverseGetPrice(int symbol)
public static int reverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
public static void reverseEncode(short[] Models, int startIndex, RangeEncoder rangeEncoder, int NumBitLevels, int symbol) throws IOException
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.