MAM API
(developer's version)

Interface ArithmeticModel

All Known Implementing Classes:
AdaptiveModel, PPMModel

public interface ArithmeticModel

Common interface for different kinds of models that can be used together with the arithmetic coding.


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
 void reset()
          State reset to the initial values
 long totalCount()
          Returns the total count.
 void updateModel(int symbol)
          Informs the model with last seen symbol.
 

Method Detail

updateModel

void updateModel(int symbol)
Informs the model with last seen symbol. Model and its frequency counts are updated accordingly


totalCount

long totalCount()
Returns the total count.


lowInterval

long lowInterval(int symbol)
Returns the low interval cumulative count of a symbol


highInterval

long highInterval(int symbol)
Returns the high interval cumulative count of a symbol


countToSymbol

int countToSymbol(int cum)
Return the symbol with the cumulative count


reset

void reset()
State reset to the initial values


MAM API
(developer's version)

Copyright © 2007 Aija Niissalo, Marko Laakso, Markus Heinonen.