skecg.cs.codec_b.encode
7.1.3. skecg.cs.codec_b.encode#
- skecg.cs.codec_b.encode(params: skecg.cs.codec_b.EncoderParams, ecg: numpy.ndarray)[source]#
Encodes ECG data into a bitstream
This function:
Splits the ECG signal into frames
Performs windowing, compressing sensing and flattening on each frame.
Performs entropy coding of measurements for each frame.
Serializes stream header, frame headers and frame payloads into a bitstream.