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
  • Constructor Details

    • Dataset

      public Dataset(int rows, int cols)
    • Dataset

      public Dataset(String[][] matrix)
  • Method Details

    • 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)
    • setRowLabelAttr

      public void setRowLabelAttr(int pos, String attrName, String attr)
    • setRowLabelAttr

      public void setRowLabelAttr(int pos, Map<String,String> attrMap)
    • setColLabelAttr

      public void setColLabelAttr(int pos, String attrName, String attr)
    • setColLabelAttr

      public void setColLabelAttr(int pos, Map<String,String> attrMap)
    • getColLabelsAttrs

      public List<Map<String,String>> getColLabelsAttrs()
    • getRowLabelsAttrs

      public List<Map<String,String>> getRowLabelsAttrs()
    • getColLabels

      public List<String> getColLabels()
    • getRowLabels

      public List<String> getRowLabels()
    • 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