|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.Histogram
public class Histogram
A class to simplify the creation of histogram plots such as a plot of object size etc.
Constructor Summary | |
---|---|
Histogram(int size,
int num)
Build a Histogram with the given bucket size and number with data values starting at zero. |
|
Histogram(int size,
int num,
int start)
Build a Histogram with the given bucket size, number and starting offset. |
Method Summary | |
---|---|
int |
getValue(int index)
Get the contents of the given bucket. |
void |
printReport(java.lang.String title,
IAnalysisReport report)
Output the histogram in the given report |
void |
recordValue(int value)
Record the given value in the histogram |
java.lang.String |
toString()
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Histogram(int size, int num, int start)
size
- the size of the bucketsnum
- the number of buckets to be storedstart
- the starting value to be recorded in the histogampublic Histogram(int size, int num)
size
- the size of the bucketsnum
- the number of buckets to be storedMethod Detail |
---|
public void recordValue(int value)
value
- the value to be recordedpublic int getValue(int index)
index
- the bucket number
public void printReport(java.lang.String title, IAnalysisReport report)
title
- a title for the histogramreport
- the reportpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |