Skip to contents

The "delta" filter encodes data as the difference between adjacent elements, with the first element stored as is. Decoding is a cumulative sum in the decoded data type, wrapping around on overflow for integer data types up to 32 bits, like Numpy does. 64-bit integers do not wrap around: an overflow yields NA.

Super classes

zarr_extension -> zarr_codec -> zarr_filter -> zarr_filter_delta

Methods

Inherited methods


zarr_filter_delta$new()

Create a new "delta" filter.

Usage

zarr_filter_delta$new(configuration)

Arguments

configuration

A list with elements dtype and, optionally, astype.

Returns

An instance of this class.


zarr_filter_delta$decode()

Decode the data.

Usage

zarr_filter_delta$decode(data)

Arguments

data

The encoded data.

Returns

The decoded data.