Package healpix.essentials
Class Compressor
java.lang.Object
healpix.essentials.Compressor
Class for compressing/uncompressing monotonous integer sequences.
Implementation inspired by Moffat and Stuiver 2000: "Binary Interpolative
Coding for Effective Index Compression", Information Retrieval 3, 25
- Author:
- Martin Reinecke
- Copyright:
- 2014 Max-Planck-Society
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long[]
interpol_decode
(byte[] data) Return an array containing the number sequence decompressed from data.static byte[]
interpol_encode
(long[] data, int begin, int end) Return a byte array representing the compressed sequence [data[begin]; data[end-1]]