public class BZip2MTFAndRLE2StageEncoder extends Object
Constructor and Description |
---|
BZip2MTFAndRLE2StageEncoder(int[] bwtBlock,
int bwtLength,
boolean[] bwtValuesPresent) |
Modifier and Type | Method and Description |
---|---|
void |
encode()
Performs the Move To Front transform and Run Length Encoding[1] stages
|
int |
getMtfAlphabetSize() |
char[] |
getMtfBlock() |
int |
getMtfLength() |
int[] |
getMtfSymbolFrequencies() |
public BZip2MTFAndRLE2StageEncoder(int[] bwtBlock, int bwtLength, boolean[] bwtValuesPresent)
bwtBlock
- The Burrows Wheeler Transformed block databwtLength
- The actual length of the BWT databwtValuesPresent
- The values that are present within the BWT data. For each index,
true
if that value is present within the data, otherwise false
public void encode()
public char[] getMtfBlock()
public int getMtfLength()
public int getMtfAlphabetSize()
public int[] getMtfSymbolFrequencies()
Copyright © 2019. All rights reserved.