|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.util.BenchmarkStatistics
public class BenchmarkStatistics
Class that collects data and can present statistic information about the collected data right now the Class can only handle integers.
| Constructor Summary | |
|---|---|
BenchmarkStatistics(String name,
String keytext,
String valuetext)
|
|
| Method Summary | |
|---|---|
int |
get(int key)
Returns the value for a certain key. |
int |
inc(int key)
Increments the value for a certain key by one. |
String |
mean()
Report operation: Calculates the mean or 'average' of the collected elements |
String |
percentageGEKey(int keyToSearch)
Report operation: Calculates how much collected elements are greater or equal then a certain search key |
String |
percentageGTKey(int keyToSearch)
Report operation: Calculates how much collected elements are greater then a certain search key |
String |
percentageLEKey(int keyToSearch)
Report operation: Calculates how much collected elements are less or equal then a certain search key |
String |
percentageLTKey(int keyToSearch)
Report operation: Calculates how much collected elements are less then a certain search key |
int |
put(int key,
int value)
Sets the value for a certain key. |
void |
toFile()
Report operation: Function to write all key value pairs to a File. |
String |
toString()
Report operation: Function to print all key value pairs to a String in sorted order. |
int |
totalNumberOfElements()
Report operation: The total number of elements counted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BenchmarkStatistics(String name,
String keytext,
String valuetext)
| Method Detail |
|---|
public int get(int key)
public int put(int key,
int value)
public int inc(int key)
public String percentageGEKey(int keyToSearch)
public String percentageGTKey(int keyToSearch)
public String percentageLTKey(int keyToSearch)
public String percentageLEKey(int keyToSearch)
public String mean()
public int totalNumberOfElements()
public String toString()
toString in class Objectpublic void toFile()
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||