Struct redux::model::Parameters [] [src]

pub struct Parameters {
    pub symbol_bits: usize,
    pub symbol_eof: usize,
    pub symbol_count: usize,
    pub freq_bits: usize,
    pub freq_max: u64,
    pub code_bits: usize,
    pub code_min: u64,
    pub code_one_fourth: u64,
    pub code_half: u64,
    pub code_three_fourths: u64,
    pub code_max: u64,
}

Model parameters that specifies the common property of the models.

Fields

Bit width of the symbols being encoded. Usually 8 for byte oriented inputs.

Code for the EOF symbol. This is the next symbol code after the valid symbols to encode.

Number of possible symbols including the EOF symbol.

Number of bits representing symbol frequencies.

Maximum cumulated frequency value for symbols.

Number of bits representing the current code ranges.

Minimum value for code range. This is always zero.

Delimiter for the one fourth of the valid code range.

Delimiter for the half of the valid code range.

Delimiter for the three fourths of the valid code range.

Upper limit of the valid code range.

Methods

impl Parameters
[src]

Calculates all parameter values based on the symbol, frequency and code width.

Trait Implementations

impl Clone for Parameters
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more