|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntropyHistogram
Abstract histogram interface - {#link WheelOfFortune} with incremental frequency update capability and decimation mechanism.
| Field Summary |
|---|
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Method Summary | |
|---|---|
void |
decimate()
Divides each frequency in the current context by 2. |
int |
getContext()
Returns the current context. |
boolean |
getNonZero()
Read non-zero attribute for the current context |
long |
getSumLimit()
Returns the frequency sum limit for the current context. |
void |
inc(int _symbol)
Increments a single symbol's frequency by 1. |
void |
inc(int _symbol,
long _freq)
Increments a single symbol's frequency. |
void |
inc(long[] _freq)
Increments frequencies of all symbols in the current context. |
void |
init(int _defaultSymbols,
long _defaultSumLimit,
boolean _defaultNonZero,
int _context)
Histogram (re-)initialization. |
int |
setContext(int _newContext)
Sets the given context as current. |
void |
setDefaultNonZero(boolean _defaultNonZero)
Set non-zero attribute: keep frequencies non-zero at all times? |
void |
setDefaultSumLimit(long _defaultSumLimit)
Sets the new default frequency sum limit for new contexts. |
void |
setDefaultSymbols(int _defaultSymbols)
Sets the new default number of symbols for new contexts. |
void |
setNonZero(boolean _nonZero)
Set non-zero attribute for the current context: keep frequencies non-zero at all times? |
void |
setSumLimit(long _sumLimit)
Changes the frequency sum limit for the current context. |
| Methods inherited from interface cz.cuni.jagrlib.iface.WheelOfFortune |
|---|
convert, get, getSymbols, left, set, set, setSymbols, total |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Method Detail |
|---|
void init(int _defaultSymbols,
long _defaultSumLimit,
boolean _defaultNonZero,
int _context)
_defaultSymbols - Default number of symbols for new contexts._defaultSumLimit - Default frequency sum limit for new contexts (0 for no bounds)._defaultNonZero - Keeps frequencies non-zero at all times.
Default frequencies are the lowest possible._context - The initial context.setDefaultSymbols(int),
setDefaultSumLimit(long),
setDefaultNonZero(boolean),
decimate()void setDefaultSymbols(int _defaultSymbols)
_defaultSymbols - New default number of symbols.init(int, long, boolean, int),
WheelOfFortune.setSymbols(int),
WheelOfFortune.getSymbols()void setDefaultSumLimit(long _defaultSumLimit)
_defaultSumLimit - New default frequency sum limit (0 for no bounds).init(int, long, boolean, int),
setSumLimit(long),
getSumLimit(),
WheelOfFortune.total()void setSumLimit(long _sumLimit)
_sumLimit - New frequency sum limit (0 for no bounds).init(int, long, boolean, int),
setDefaultSumLimit(long),
getSumLimit(),
decimate(),
WheelOfFortune.total()long getSumLimit()
0 for no bounds).init(int, long, boolean, int),
setDefaultSumLimit(long),
setSumLimit(long),
WheelOfFortune.total()void setDefaultNonZero(boolean _defaultNonZero)
_defaultNonZero - Non-zero attribute for new contexts.init(int, long, boolean, int),
setNonZero(boolean),
getNonZero()void setNonZero(boolean _nonZero)
_nonZero - Non-zero attribute for the current context.init(int, long, boolean, int),
setDefaultNonZero(boolean),
getNonZero(),
decimate()boolean getNonZero()
init(int, long, boolean, int),
setDefaultNonZero(boolean),
setNonZero(boolean)int setContext(int _newContext)
_newContext - Id of the new context.
init(int, long, boolean, int),
setDefaultSymbols(int),
setDefaultSumLimit(long),
getContext()int getContext()
setContext(int)void decimate()
init(int, long, boolean, int),
setDefaultSumLimit(long),
setSumLimit(long),
getSumLimit(),
setDefaultNonZero(boolean),
setNonZero(boolean),
getNonZero(),
WheelOfFortune.total()void inc(long[] _freq)
_freq - Array of frequency increments.inc(int,long),
inc(int),
decimate()
void inc(int _symbol,
long _freq)
_symbol - Symbol code._freq - Frequency increment of the symbol.inc(long[]),
inc(int),
decimate()void inc(int _symbol)
1.
_symbol - Symbol code.inc(int,long),
inc(long[]),
decimate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||