RunLengthEncoding
Run-Length Encoding for numerical data.
Static Method Summary
Static Public Methods | ||
public static |
Decodes the given data. |
|
public static |
encode(array: Number[]): RunLengthEncoding Encodes the given data. |
Constructor Summary
Public Constructor | ||
public |
constructor(runLengths: Number[], data: Number[]) Constructs a new container for Run-Length encoded data. |
Member Summary
Public Members | ||
public |
The encoded data. |
|
public |
runLengths: Number[] The run lengths. |
Static Public Methods
public static decode(runLengths: Number[], data: Number[], array: Array): Array source
Decodes the given data.
public static encode(array: Number[]): RunLengthEncoding source
Encodes the given data.
Params:
Name | Type | Attribute | Description |
array | Number[] | The data to encode. |