Class Dataset


  • public class Dataset
    extends Object
    Author:
    kevinvandevelde at atmire.com Date: 21-Jan-2009 Time: 13:44:48
    • 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)
      • 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)
      • 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)
      • containsNonZeroValues

        public boolean containsNonZeroValues()
        Returns false if this dataset only contains zeroes.
        Returns:
        false if this dataset only contains zeroes.
      • flipRowCols

        public void flipRowCols()