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