Package org.dspace.statistics
Class Dataset
java.lang.Object
org.dspace.statistics.Dataset
- Author:
- kevinvandevelde at atmire.com Date: 21-Jan-2009 Time: 13:44:48
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValueToMatrix(int row, int coll, float value) voidaddValueToMatrix(int row, int coll, String value) booleanReturns false if this dataset only contains zeroes.voidString[][]intintvoidsetColLabel(int n, String label) voidsetColLabelAttr(int pos, String attrName, String attr) voidsetColLabelAttr(int pos, Map<String, String> attrMap) voidsetColTitle(String colTitle) voidvoidsetRowLabel(int n, String label) voidsetRowLabelAttr(int pos, String attrName, String attr) voidsetRowLabelAttr(int pos, Map<String, String> attrMap) voidsetRowTitle(String rowTitle)
-
Constructor Details
-
Dataset
public Dataset(int rows, int cols) -
Dataset
-
-
Method Details
-
setColLabel
-
setRowLabel
-
getRowTitle
-
getColTitle
-
setColTitle
-
setRowTitle
-
setRowLabelAttr
-
setRowLabelAttr
-
setColLabelAttr
-
setColLabelAttr
-
getColLabelsAttrs
-
getRowLabelsAttrs
-
getColLabels
-
getRowLabels
-
getNbRows
public int getNbRows() -
getNbCols
public int getNbCols() -
getFormat
-
setFormat
-
getMatrix
-
addValueToMatrix
public void addValueToMatrix(int row, int coll, float value) -
addValueToMatrix
- Throws:
ParseException
-
containsNonZeroValues
public boolean containsNonZeroValues()Returns false if this dataset only contains zeroes.- Returns:
- false if this dataset only contains zeroes.
-
flipRowCols
public void flipRowCols() -
exportAsCSV
- Throws:
IOException
-