|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.chart.model.ChartData
public class ChartData
Class to maintain the collected data to use in charts. It represent a 2-dimensional array of double. Each row and column has an unique string identifier (because it may serve as a key in the JFreeChart dataset).
Creation date: 16 d�c. 2005
Constructor Summary | |
---|---|
ChartData()
|
Method Summary | |
---|---|
void |
addRow(java.lang.String name,
double[] row)
Add a row to the data. |
void |
addRow(java.lang.String name,
float[] row)
Add a row to the data. |
void |
dump()
for debug purposes |
int |
getColumnCount()
|
java.lang.String[] |
getColumnTitles()
get the names of the columns |
double[] |
getMaximum()
|
double[] |
getMean()
|
double[] |
getMinimum()
|
double[] |
getPercentile(int percentile)
|
double[] |
getPercentile10()
|
double[] |
getRow(int index)
Return a specific row given its index |
double[] |
getRow(java.lang.String name)
Return a specific row given its name |
int |
getRowCount()
|
int |
getRowIndex(java.lang.String name)
get the index of a specific row given its name |
java.lang.String |
getRowTitle(int index)
get the unique name of a row given its position (index) |
double[] |
getStandardDeviation()
|
void |
removeRow(int index)
remove a row from the data given its index |
void |
removeRow(java.lang.String name)
remove a row from the data given its name |
void |
setColumnTitles(java.lang.String[] columnTitles)
Set the name of the columns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartData()
Method Detail |
---|
public void addRow(java.lang.String name, float[] row) throws InvalidChartDataException
name
- Unique name of the new rowrow
- array containing the data
InvalidChartDataException
- if a row with the same name already exists.public void addRow(java.lang.String name, double[] row) throws InvalidChartDataException
name
- Unique name of the new rowrow
- array containing the data
InvalidChartDataException
- if a row with the same name already exists.public int getRowCount()
public int getColumnCount()
public double[] getRow(java.lang.String name)
name
- name of the row to be returned
public double[] getRow(int index)
index
-
public int getRowIndex(java.lang.String name)
name
-
public void removeRow(java.lang.String name)
name
- public void removeRow(int index)
index
- public java.lang.String getRowTitle(int index)
index
-
public java.lang.String[] getColumnTitles()
public void setColumnTitles(java.lang.String[] columnTitles) throws InvalidChartDataException
columnTitles
-
InvalidChartDataException
- If there are already some data and the number of columnTitles does not match
the number of elements of the already defined rows.public void dump()
public double[] getMaximum()
getRowCount()
containing the max value of each rowpublic double[] getMinimum()
getRowCount()
containing the min value of each rowpublic double[] getMean()
getRowCount()
containing the mean value of each rowpublic double[] getStandardDeviation()
getRowCount()
containing the standard deviation value of each rowpublic double[] getPercentile(int percentile)
getRowCount()
containing the specified percentile value of each rowpublic double[] getPercentile10()
getRowCount()
containing the percentile 10 value of each row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |