|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.OpenStats
uchicago.src.sim.analysis.OpenHistogramStat
public class OpenHistogramStat
The Statistics class for histogram data. Operates as the backend for a Histogram, manipulating the HistogramItems. Can be created without a Histogram class to generate histogram data without displaying such.
Histogram,
HistogramItem| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.analysis.OpenStats |
|---|
CSV, data, fileFormat, fileName, lastColUpdate, lastPrinted, model, title |
| Constructor Summary | |
|---|---|
OpenHistogramStat(int numBins,
long lowerBound)
Constructs a HistogramStatistic with the specified number of bins and the specified lower bound. |
|
| Method Summary | |
|---|---|
void |
createHistogramItem(java.lang.String name,
java.util.List list,
BinDataSource source)
Creates a HistogramItem with specified name, list and BinDataSource. |
void |
createHistogramItem(java.lang.String name,
java.util.List list,
BinDataSource source,
int maxIntegerDigits,
int maxFractionDigits)
Creates a HistogramItem with specified name, list and BinDataSource. |
void |
createHistogramItem(java.lang.String name,
java.util.List list,
java.lang.String methodName)
Creates a HistogramItem. |
void |
createHistogramItem(java.lang.String name,
java.util.List list,
java.lang.String methodName,
int maxIntegerDigits,
int maxFractionDigits)
Creates a HistogramItem. |
void |
record()
Calculates a new histogram over the data supplied by a HistogramItem |
void |
setPointLabels(java.lang.String[] labels)
Sets the histogram labels (the x - axis legend). |
void |
writeToFile()
Write the histogram data to a file. |
| Methods inherited from class uchicago.src.sim.analysis.OpenStats |
|---|
getDataItem, getDataTable, getName, getNumRows, getPointLabels, getRow, getSeriesLabel, getSeriesName, renameFile, setSimModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenHistogramStat(int numBins,
long lowerBound)
numBins - the number of binslowerBound - the lower bound| Method Detail |
|---|
public void createHistogramItem(java.lang.String name,
java.util.List list,
java.lang.String methodName)
name - the name of this itemlist - the list of object on which the specified method is calledmethodName - the name of the method to call on the objects. Should
return a Number value.HistogramItem
public void createHistogramItem(java.lang.String name,
java.util.List list,
java.lang.String methodName,
int maxIntegerDigits,
int maxFractionDigits)
name - the name of this itemlist - the list of object on which the specified method is calledmethodName - the name of the method to call on the objects. Should
return a Number value.maxIntegerDigits - the maximum number of digits before the
decimal point in the bin labels. A value of -1 will record all the digits.maxFractionDigits - the maximum number of digits after the
decimal point in the bin labels. A value of -1 will record all the digits.HistogramItem
public void createHistogramItem(java.lang.String name,
java.util.List list,
BinDataSource source)
name - the name of the itemlist - the list of objects that provided the data for the itemsource - the BinDataSource used to get the data from the objects
in the list.
public void createHistogramItem(java.lang.String name,
java.util.List list,
BinDataSource source,
int maxIntegerDigits,
int maxFractionDigits)
name - the name of the itemlist - the list of objects that provided the data for the itemsource - the BinDataSource used to get the data from the objects
in the list.maxIntegerDigits - the maximum number of digits before the
decimal point in the bin labels. A value of -1 will record all the digits.maxFractionDigits - the maximum number of digits after the
decimal point in the bin labels. A value of -1 will record all the digits.public void record()
record in class OpenStatspublic void setPointLabels(java.lang.String[] labels)
public void writeToFile()
writeToFile in class OpenStats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||