compressors
Class LZ77Dictionary
java.lang.Object
compressors.LZ77Dictionary
public class LZ77Dictionary
- extends java.lang.Object
It represents a dictionary of words generated during LZ77 compression
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LZ77Dictionary
public LZ77Dictionary()
getEntries
public java.util.Vector<LZ77DictEntry> getEntries()
- Returns:
- the entries
getEntry
public LZ77DictEntry getEntry(int i)
- Returns:
- the entries
addEntry
public void addEntry(LZ77DictEntry e)
computeMeanWordLength
public double computeMeanWordLength()
size
public int size()
getMaxWordLen
public int getMaxWordLen()
- Returns:
- the maxWordLen
setMaxWordLen
public void setMaxWordLen(int maxWordLen)
- Parameters:
maxWordLen
- the maxWordLen to set
getMaxWordIndex
public int getMaxWordIndex()
- Returns:
- the maxWordIndex
setMaxWordIndex
public void setMaxWordIndex(int maxWordIndex)
- Parameters:
maxWordIndex
- the maxWordIndex to set
getMeanWordLen
public double getMeanWordLen()
- Returns:
- the meanWordLen
setMeanWordLen
public void setMeanWordLen(double meanWordLen)
- Parameters:
meanWordLen
- the meanWordLen to set
getNumberOfWords
public int getNumberOfWords()
- Returns:
- the numberOfWords
setNumberOfWords
public void setNumberOfWords(int numberOfWords)
- Parameters:
numberOfWords
- the numberOfWords to set