Class ResultMatrixPlainText

  • All Implemented Interfaces:
    java.io.Serializable, RevisionHandler

    public class ResultMatrixPlainText
    extends ResultMatrix
    This matrix is a container for the datasets and classifier setups and their statistics. It outputs the matrix in plain text (columns).
    Version:
    $Revision: 1.8 $
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • ResultMatrixPlainText

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

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

        public ResultMatrixPlainText​(ResultMatrix matrix)
        initializes the matrix with the values from the given matrix
        Parameters:
        matrix - the matrix to get the values from
    • Method Detail

      • getDisplayName

        public java.lang.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
      • toStringMatrix

        public java.lang.String toStringMatrix()
        returns the matrix as plain text
        Specified by:
        toStringMatrix in class ResultMatrix
      • toStringKey

        public java.lang.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 java.lang.String toStringSummary()
        returns the summary as string
        Specified by:
        toStringSummary in class ResultMatrix
      • toStringRanking

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

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

        public static void main​(java.lang.String[] args)
        for testing only