| Copyright | (c) Daniel Lovasko 2016-2017 |
|---|---|
| License | BSD3 |
| Maintainer | Daniel Lovasko <daniel.lovasko@gmail.com> |
| Stability | stable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Codec.Goat.ValueFrame
Description
- data ValueFrame = ValueFrame (Maybe Word32) Word32 ByteString
- valueDecode :: ValueFrame -> [Float]
- valueEncode :: [Float] -> ValueFrame
Documentation
data ValueFrame Source #
Succinct representation of a list of value points. The constructor arguments are as follows: * first value * number of valid bits * bits
Constructors
| ValueFrame (Maybe Word32) Word32 ByteString |
Instances
| Eq ValueFrame Source # | |
| Show ValueFrame Source # | Pretty-printing of the ValueFrame type. |
| Serialize ValueFrame Source # | Binary serialization of the ValueFrame type. All integers are using the big-endian byte order. |
| Frame Float ValueFrame Source # | Binding of Float and ValueFrame. |
Arguments
| :: ValueFrame | succinct frame form |
| -> [Float] | value points |
Unpack value points from the succinct frame.
Arguments
| :: [Float] | value points |
| -> ValueFrame | succinct frame form |
Encode a list of float values into a succinct value frame.