com.github.junrar.unpack.ppm
Class PPMContext
java.lang.Object
com.github.junrar.unpack.ppm.Pointer
com.github.junrar.unpack.ppm.PPMContext
public class PPMContext
- extends Pointer
DOCUMENT ME
- Version:
- $LastChangedRevision$
- Author:
- $LastChangedBy$
| Fields inherited from class com.github.junrar.unpack.ppm.Pointer |
mem, pos |
size
public static final int size
ExpEscape
public static final int[] ExpEscape
PPMContext
public PPMContext(byte[] mem)
init
public PPMContext init(byte[] mem)
getFreqData
public FreqData getFreqData()
setFreqData
public void setFreqData(FreqData freqData)
getNumStats
public final int getNumStats()
setNumStats
public final void setNumStats(int numStats)
getOneState
public State getOneState()
setOneState
public void setOneState(StateRef oneState)
getSuffix
public int getSuffix()
setSuffix
public void setSuffix(PPMContext suffix)
setSuffix
public void setSuffix(int suffix)
setAddress
public void setAddress(int pos)
- Description copied from class:
Pointer
- needs to set the fields of this object to the values in the byte[]
at the given position.
be aware of the byte order
- Overrides:
setAddress in class Pointer
- Parameters:
pos - the position this object should point to
createChild
public int createChild(ModelPPM model,
State pStats,
StateRef firstState)
rescale
public void rescale(ModelPPM model)
getMean
public int getMean(int summ,
int shift,
int round)
decodeBinSymbol
public void decodeBinSymbol(ModelPPM model)
update1
public void update1(ModelPPM model,
int p)
decodeSymbol2
public boolean decodeSymbol2(ModelPPM model)
update2
public void update2(ModelPPM model,
int p)
decodeSymbol1
public boolean decodeSymbol1(ModelPPM model)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.