Class ResultMatrixGnuPlot

java.lang.Object
weka.experiment.ResultMatrix
weka.experiment.ResultMatrixGnuPlot
All Implemented Interfaces:
Serializable, RevisionHandler

public class ResultMatrixGnuPlot extends ResultMatrix
This matrix is a container for the datasets and classifier setups and their statistics. It outputs the data in CSV format.
Version:
$Revision: 1.5 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • ResultMatrixGnuPlot

      public ResultMatrixGnuPlot()
      initializes the matrix as 1x1 matrix
    • ResultMatrixGnuPlot

      public ResultMatrixGnuPlot(int cols, int rows)
      initializes the matrix with the given dimensions
    • ResultMatrixGnuPlot

      public ResultMatrixGnuPlot(ResultMatrix matrix)
      initializes the matrix with the values from the given matrix
      Parameters:
      matrix - the matrix to get the values from
  • Method Details

    • getDisplayName

      public String getDisplayName()
      returns the name of the output format
      Specified by:
      getDisplayName in class ResultMatrix
    • clear

      public void clear()
      removes the stored data but retains the dimensions of the matrix
      Overrides:
      clear in class ResultMatrix
    • toStringHeader

      public String toStringHeader()
      returns the header of the matrix as a string
      Specified by:
      toStringHeader in class ResultMatrix
      See Also:
      • ResultMatrix.m_HeaderKeys
      • ResultMatrix.m_HeaderValues
    • toStringMatrix

      public String toStringMatrix()
      returns the matrix in CSV format
      Specified by:
      toStringMatrix in class ResultMatrix
    • toStringKey

      public String toStringKey()
      returns returns a key for all the col names, for better readability if the names got cut off
      Specified by:
      toStringKey in class ResultMatrix
    • toStringSummary

      public String toStringSummary()
      returns the summary as string
      Specified by:
      toStringSummary in class ResultMatrix
    • toStringRanking

      public String toStringRanking()
      returns the ranking in a string representation
      Specified by:
      toStringRanking in class ResultMatrix
    • getRevision

      public String getRevision()
      Returns the revision string.
      Returns:
      the revision
    • main

      public static void main(String[] args)
      for testing only