7.2.1. skecg.cs.codec_b.EncodedFrame#

class skecg.cs.codec_b.EncodedFrame(n_measurements: int, n_windows: int, max_val: int, min_val: int, mean_val: int, std_val: int, q: int, rng_mult: int, n_words: int, n_header_bits: int, n_payload_bits: int, n_bits: int, q_nmse: float, c_nmse: float, qc_nmse: float, qc_snr: float)[source]#

Information about each encoded frame

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

c_nmse

NMSE for the clipping step

max_val

Maximum value of measurements

mean_val

Mean value of measurements (integer)

min_val

Minimum value of measurements

n_bits

Total number of bits in the encoded frame

n_header_bits

Number of bits in the frame header

n_measurements

Number of measurements

n_payload_bits

Number of bits in the frame payload

n_windows

Number of windows

n_words

Number of words in the compressed entropy coded frame payload

overhead

Fractional overhead of the header bits

q

Quantization parameter used for encoding the frame data

q_nmse

NMSE for the quantization step

qc_nmse

NMSE for combined quantization and clipping

qc_snr

SNR for combined quantization and clipping

rng_mult

Range multiplier used for restricting the set of values

std_val

Standard deviation of measurements (integer)