7.2.2. skecg.cs.codec_b.EncodedStream#

class skecg.cs.codec_b.EncodedStream(n_samples: int, n_windows: int, n_frames: int, n_measurements: int, n_header_bits: int, n_bits: int, frames: List[skecg.cs.codec_b.EncodedFrame])[source]#

Information about the encoded bitstream

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

bpm

Bits per measurement

bps

Bits per sample

c_nmses

List of NMSE for clipping step across all frames

compressed_bits

Total compressed bits in the encoded bitstream

cr

Compression ratio

frames

List of encoded frames

mean_vals

List of measurement mean values across all frames

n_bits

Total number of bits in the bitstream

n_frames

Number of frames in the bitstream

n_header_bits

Number of bits in the stream header

n_measurements

Number of measurements in the bitstream

n_samples

Number of samples in the bitstream

n_windows

Number of windows in the bitstream

overhead_bits

List of overhead bits across all frames

overheads

List of fractional overheads of frame headers across all frames

pss

Percentage space savings

q_nmses

List of NMSE for quantization step across all frames

q_vals

List of quantization parameters across all frames

qc_nmses

List of NMSE for quantization+clipping step across all frames

qc_snrs

List of SNR values for quantization+clipping step across all frames

rng_mults

List of range multipliers across all frames

std_vals

List of measurement standard deviation values across all frames

total_overhead

Total fractional overhead of header bits across all frames

uncompressed_bits

Total uncompressed bits in the original ECG signal