Package x3
Class RiceTable
java.lang.Object
x3.RiceTable
public class RiceTable
extends java.lang.Object
Rice table functions and lookup tables for both reading and writing
compressed rice data.
- Author:
- Doug
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RiceTable(int riceOrder, int riceRange)
Create a rice table with given order and range of values -
Method Summary
Modifier and Type Method Description static short[]
makeInverseRice(int whereTo)
Create an inverse RICE lookup table up to a certain number.
-
Field Details
-
Constructor Details
-
RiceTable
public RiceTable(int riceOrder, int riceRange)Create a rice table with given order and range of values- Parameters:
riceOrder
- Order of the Rice tablericeRange
- maximum / minimum number to include in the table.
-
-
Method Details
-
makeInverseRice
public static short[] makeInverseRice(int whereTo)Create an inverse RICE lookup table up to a certain number. The table length will be 2*whereTo + 1 in the format 0,-1,1,-2,2,-3,3, etc...
A single table can be used with all rice codes.- Parameters:
whereTo
- highest number to include in the table- Returns:
- Inverse RICE lookup table.
-