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$
  • Field Details

    • unionSize

      private static final int unionSize
    • size

      public static final int size
    • numStats

      private int numStats
    • freqData

      private final FreqData freqData
    • oneState

      private final State oneState
    • suffix

      private int suffix
    • ExpEscape

      public static final int[] ExpEscape
    • tempState1

      private final State tempState1
    • tempState2

      private final State tempState2
    • tempState3

      private final State tempState3
    • tempState4

      private final State tempState4
    • tempState5

      private final State tempState5
    • tempPPMContext

      private PPMContext tempPPMContext
    • ps

      private final int[] ps
  • Constructor Details

    • PPMContext

      public PPMContext(byte[] mem)
  • Method Details

    • 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
    • getTempPPMContext

      private PPMContext getTempPPMContext(byte[] mem)
    • createChild

      public int createChild(ModelPPM model, State pStats, StateRef firstState)
    • rescale

      public void rescale(ModelPPM model)
    • getArrayIndex

      private int getArrayIndex(ModelPPM Model, State rs)
    • 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)
    • makeEscFreq2

      private SEE2Context makeEscFreq2(ModelPPM model, int Diff)
    • decodeSymbol1

      public boolean decodeSymbol1(ModelPPM model)
    • toString

      public String toString()
      Overrides:
      toString in class Object