Module: Omnizip::Algorithms::PPMd8::Constants

Included in:
Omnizip::Algorithms::PPMd8, Context, Decoder, Encoder, Model, RestorationMethod
Defined in:
lib/omnizip/algorithms/ppmd8/constants.rb

Overview

Constants specific to PPMd8 algorithm

PPMd8 adds restoration methods and enhanced memory management compared to PPMd7.

Constant Summary collapse

RESTORE_METHOD_RESTART =

Restoration method constants

0
RESTORE_METHOD_CUT_OFF =
1
DEFAULT_RESTORE_METHOD =
RESTORE_METHOD_RESTART
PROB_TOTAL =

Probability scaling factors

2048
MAX_FREQ =
124
INIT_ESCAPE_FREQ =
1
SEE_CONTEXTS =

Context management

25
SUFFIX_CONTEXTS =
32
INT_BITS =

Update intervals

7
PERIOD_BITS =
7
BIN_SCALE =
1 << 13
INTERVAL =
1 << INT_BITS
UNIT_SIZE =

Memory management

12
MAX_STATES =
256
UNIT_ALLOC_SIZE =
12
GLUE_COUNT_THRESHOLD =

PPMd8-specific: glue counting threshold

255