goat-1.0.0: Time Series Compression

Copyright(c) Daniel Lovasko 2016-2017
LicenseBSD3
MaintainerDaniel Lovasko <daniel.lovasko@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Goat.Frame

Description

The Frame typeclass unites the interface to both TimeFrame and ValueFrame types. Intended for internal use only.

Synopsis

Documentation

class Frame r c where Source #

Abstract compression frame that binds two types together. The type variable "r" stands for Raw, variable "c" for Compressed.

Minimal complete definition

frameDecode, frameEncode, frameHead

Methods

frameDecode :: c -> [r] Source #

Decompress a frame into raw elements.

frameEncode :: [r] -> c Source #

Compress raw elements into a frame.

frameHead :: c -> Maybe r Source #

First raw element of a frame.

frameDecode :: Frame r c => c -> [r] Source #

Decompress a frame into raw elements.

frameEncode :: Frame r c => [r] -> c Source #

Compress raw elements into a frame.

frameHead :: Frame r c => c -> Maybe r Source #

First raw element of a frame.