Class ConfusionMatrix

    • Field Detail

      • m_MatrixValues

        protected adams.flow.transformer.ConfusionMatrix.MatrixValues m_MatrixValues
        what values to generate.
      • m_UseProbabilities

        protected boolean m_UseProbabilities
        whether to use the probabilities rather 0 and 1.
      • m_CellRenderingCustomizer

        protected adams.gui.core.spreadsheettable.CellRenderingCustomizer m_CellRenderingCustomizer
        for highlighting the cells in the table.
      • m_NumDecimals

        protected int m_NumDecimals
        the number of decimals to use.
    • Constructor Detail

      • ConfusionMatrix

        public ConfusionMatrix()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • setMatrixValues

        public void setMatrixValues​(adams.flow.transformer.ConfusionMatrix.MatrixValues value)
        Sets the type of values to generate.
        Parameters:
        value - the type of values
      • getMatrixValues

        public adams.flow.transformer.ConfusionMatrix.MatrixValues getMatrixValues()
        Returns the type of values to generate.
        Returns:
        the type of values
      • matrixValuesTipText

        public String matrixValuesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUseProbabilities

        public void setUseProbabilities​(boolean value)
        Sets whether to use probabilities instead of 0 and 1 for the counts.
        Parameters:
        value - true if to use probabilities
      • getUseProbabilities

        public boolean getUseProbabilities()
        Returns whether to use probabilities instead of 0 and 1 for the counts.
        Returns:
        true if to use probabilities
      • useProbabilitiesTipText

        public String useProbabilitiesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCellRenderingCustomizer

        public void setCellRenderingCustomizer​(adams.gui.core.spreadsheettable.CellRenderingCustomizer value)
        Sets the cell rendering customizer.
        Parameters:
        value - the customizer
      • getCellRenderingCustomizer

        public adams.gui.core.spreadsheettable.CellRenderingCustomizer getCellRenderingCustomizer()
        Returns the cell rendering customizer.
        Returns:
        the customizer
      • cellRenderingCustomizerTipText

        public String cellRenderingCustomizerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumDecimals

        public void setNumDecimals​(int value)
        Sets the number of decimals to display. Use -1 to display all.
        Parameters:
        value - the number of decimals
      • getNumDecimals

        public int getNumDecimals()
        Returns the currently set number of decimals. -1 if displaying all.
        Returns:
        the number of decimals
      • numDecimalsTipText

        public String numDecimalsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.