DeltaEncoding

Qubes 9.0 Explanations of Delta Encoding.

Explanations

Delta Encoding uses Script functions that encode a float array to produce a compressed string.
The functions are DeltaEncoder.Encode, DeltaEncoder.EncodeXY and DeltaEncoder.EncodeTimeSeries.
The returned string is meant to be decoded either by DecodeDeltaSeries (if encoded by DeltaEncoder.Encode) or by DecodeDeltaSeriesXY(if encoded by DeltaEncoder.EncodeXY or EncodeTimeSeries) functions in order to be used.

Remarks

The returned string encapsulates an array of integers only.

DeltaEncoder.Encode returns a string that encapsulates an array of integers with the following structure : "[precision,x0,...,xN]".

DeltaEncoder.EncodeXY and DeltaEncoder.EncodeTimeSeries return a string that encapsulates an array of two arrays of integers with the following structure : "[[precisionX,x0,...,xN],[precisionY,y0,...,yN]] ". Those two arrays have the same length and, when decoded, the result is the enterlacing of the decoded values into a single list.

The first value in encapsulated arrays of integers corresponds to the precision used during the encoding, so it disappears after the decoding.