Package org.dspace.statistics
Class Dataset
- java.lang.Object
-
- org.dspace.statistics.Dataset
-
public class Dataset extends Object
- Author:
- kevinvandevelde at atmire.com Date: 21-Jan-2009 Time: 13:44:48
-
-
Method Summary
-
-
-
Constructor Detail
-
Dataset
public Dataset(int rows, int cols)
-
Dataset
public Dataset(String[][] matrix)
-
-
Method Detail
-
setColLabel
public void setColLabel(int n, String label)
-
setRowLabel
public void setRowLabel(int n, String label)
-
getRowTitle
public String getRowTitle()
-
getColTitle
public String getColTitle()
-
setColTitle
public void setColTitle(String colTitle)
-
setRowTitle
public void setRowTitle(String rowTitle)
-
getNbRows
public int getNbRows()
-
getNbCols
public int getNbCols()
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getMatrix
public String[][] getMatrix()
-
addValueToMatrix
public void addValueToMatrix(int row, int coll, float value)
-
addValueToMatrix
public void addValueToMatrix(int row, int coll, String value) throws ParseException- 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
public ByteArrayOutputStream exportAsCSV() throws IOException
- Throws:
IOException
-
-