|
MAM API (developer's version) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAdaptiveModel
public class AdaptiveModel
Regular adaptive arithmetic coding model.
Field Summary | |
---|---|
(package private) byte[] |
chars
|
(package private) int[] |
counts
|
(package private) int |
currentIndex
|
(package private) boolean |
indexOk
|
Constructor Summary | |
---|---|
AdaptiveModel()
|
Method Summary | |
---|---|
int |
countToSymbol(int cum)
Return the symbol with the cumulative count |
long |
highInterval(int symbol)
Returns the high interval cumulative count of a symbol |
long |
lowInterval(int symbol)
Returns the low interval cumulative count of a symbol |
private long |
previousCount()
Gets cumulative symbol count of the sybol with the previous index (probabitily other than 0 or for the first symbol) in encoding. |
private void |
rescaleCounts()
|
void |
reset()
State reset to the initial values |
private int |
symbolToIndex(int symbol)
|
long |
totalCount()
Returns the total count. |
void |
updateModel(int symbol)
Informs the model with last seen symbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int[] counts
byte[] chars
int currentIndex
boolean indexOk
Constructor Detail |
---|
public AdaptiveModel()
Method Detail |
---|
public long lowInterval(int symbol)
ArithmeticModel
lowInterval
in interface ArithmeticModel
private long previousCount()
public long highInterval(int symbol)
ArithmeticModel
highInterval
in interface ArithmeticModel
public long totalCount()
ArithmeticModel
totalCount
in interface ArithmeticModel
public void updateModel(int symbol)
ArithmeticModel
updateModel
in interface ArithmeticModel
private void rescaleCounts()
private int symbolToIndex(int symbol)
public int countToSymbol(int cum)
ArithmeticModel
countToSymbol
in interface ArithmeticModel
public void reset()
ArithmeticModel
reset
in interface ArithmeticModel
|
MAM API (developer's version) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |