public class ArrayEncoders extends Object
Constructor and Description |
---|
ArrayEncoders() |
Modifier and Type | Method and Description |
---|---|
static int[] |
deltaEncode(int[] intArray)
Delta encode an array of integers.
|
static int[] |
runlengthEncode(int[] intArray)
Run length encode an array of integers.
|
public static int[] deltaEncode(int[] intArray)
intArray
- the input arraypublic static int[] runlengthEncode(int[] intArray)
intArray
- the input arrayCopyright © 2015–2016 RCSB PDB. All rights reserved.