Class VersusFit

    • Field Detail

      • m_Data

        protected SpreadSheet m_Data
        Instances containing the data
      • m_Plot

        protected VersusFitPanel m_Plot
        Panel for displaying the data
      • m_VsFitOptions

        protected VersusFitOptions m_VsFitOptions
        Options for the plot
      • m_Index

        protected int m_Index
        Index of the residuals attribute in the instances
      • m_PredInd

        protected int m_PredInd
        Index of the predicted attribute in the instances
      • m_FileChooser

        protected SpreadSheetFileChooser m_FileChooser
        the file chooser for saving a specific sequence.
    • Constructor Detail

      • VersusFit

        public VersusFit()
    • Method Detail

      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • setOptions

        public void setOptions​(VersusFitOptions val)
        Set the options for this versus fit
        Parameters:
        val - Versusfitoptions object containing the options
      • getPlot

        public PlotPanel getPlot()
        Returns the plot panel of the panel, null if no panel present.
        Specified by:
        getPlot in class PaintablePanel
        Returns:
        the plot panel
      • prepareUpdate

        public void prepareUpdate()
        Prepares the update, i.e., calculations etc.
        Specified by:
        prepareUpdate in class PaintablePanel
      • canPaint

        protected boolean canPaint​(Graphics g)
        Returns true if the paintlets can be executed.
        Specified by:
        canPaint in class PaintablePanel
        Parameters:
        g - the graphics context
        Returns:
        true if painting can go ahead
      • getData

        public SpreadSheet getData()
        get the instances being plotted
        Returns:
        Instances for plotting
      • setData

        public void setData​(SpreadSheet value)
        Set the instances to be plotted
        Parameters:
        value - Instances for plotting
      • setIndices

        public void setIndices​(int res,
                               int pred)
        Set the index of the residuals attribute in the instances
      • save

        protected void save()
        Saves the data as spreadsheet.