|
MAM API (developer's version) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPPMModel
public class PPMModel
An implementation of prediction by partial matching.
| Field Summary | |
|---|---|
(package private) int |
context
|
(package private) int |
maxContext
|
(package private) int[] |
symbols
|
(package private) int[] |
totalCounts
|
(package private) PPMTree |
tree
|
| Constructor Summary | |
|---|---|
PPMModel()
|
|
PPMModel(int maxContext)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int maxContext
int context
int[] symbols
int[] totalCounts
PPMTree tree
| Constructor Detail |
|---|
public PPMModel()
public PPMModel(int maxContext)
| Method Detail |
|---|
public long lowInterval(int symbol)
lowInterval in interface ArithmeticModelpublic long highInterval(int symbol)
highInterval in interface ArithmeticModelpublic long totalCount()
totalCount in interface ArithmeticModelpublic void updateModel(int symbol)
updateModel in interface ArithmeticModelpublic int countToSymbol(int cum)
countToSymbol in interface ArithmeticModelpublic 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 | |||||||||