|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.mining.dmcscanning.freqstat.FrequencyStatistics
public class FrequencyStatistics
Class for keeping statistics of and performing analysis on the frequency in which (low-level) events occur.
Field Summary | |
---|---|
protected java.util.TreeMap |
distances
|
protected long |
entryCounter
|
protected long |
valueCounter
|
Constructor Summary | |
---|---|
FrequencyStatistics()
constructor |
Method Summary | |
---|---|
void |
addValue(long distance)
adds a newly discovered value to the set |
long |
getMaxValue()
|
long |
getMinValue()
|
int[] |
getNormalizedDistribution(int maxValue,
int granularity)
Creates an array of distribution values for e.g. |
long |
getNumberOfEntries()
|
long |
getNumberOfEntriesBetweenValues(long minVal,
long maxVal)
Retrieves the number of recorded values within a given interval. |
long |
getNumberOfEntriesForValue(long value)
Retrieves, for a given value, the number of entries that have been stored with that value (e.g., how many times '5' has been stored). |
long |
getNumberOfValues()
|
void |
initialize()
resets the object to its initial state |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.TreeMap distances
protected long entryCounter
protected long valueCounter
Constructor Detail |
---|
public FrequencyStatistics()
Method Detail |
---|
public void initialize()
public void addValue(long distance)
distance
- public long getNumberOfEntries()
public long getNumberOfValues()
public long getMinValue()
public long getMaxValue()
public long getNumberOfEntriesForValue(long value)
value
-
public long getNumberOfEntriesBetweenValues(long minVal, long maxVal)
minVal
- maxVal
-
public int[] getNormalizedDistribution(int maxValue, int granularity)
maxValue
- the value the highest number of occurrences should be mapped to (e.g., display graph height)granularity
- the number of values to normalize to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |