Package org.yamcs.parameterarchive
Class FloatCompressor
java.lang.Object
org.yamcs.parameterarchive.FloatCompressor
Implements the floating point compression scheme described here:
http://www.vldb.org/pvldb/vol8/p1816-teller.pdf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
compress
(float[] fa, int n, ByteBuffer bb) *compress the first n elements from the array of floats into the ByteBufferstatic void
compress
(float[] fa, ByteBuffer bb) static float[]
decompress
(ByteBuffer bb, int n)
-
Constructor Details
-
FloatCompressor
public FloatCompressor()
-
-
Method Details
-
compress
*compress the first n elements from the array of floats into the ByteBuffer -
decompress
-
compress
-