Class ProbabilityPlot

    • Field Detail

      • m_Data

        protected SpreadSheet m_Data
        Instances to display
      • m_IntIndex

        protected int m_IntIndex
        Index of attribute in the instances
      • m_Line

        protected boolean m_Line
        Whether a best fit line is drawn
      • m_OptionPanel

        protected ParameterPanel m_OptionPanel
        Panel containing the options for the probability plot
      • m_CheckBoxLine

        protected BaseCheckBox m_CheckBoxLine
        Check box for line overlay
      • m_CheckBoxGrid

        protected BaseCheckBox m_CheckBoxGrid
        Check box for grid overlay
      • m_Grid

        protected boolean m_Grid
        Whether to display the grid
      • m_LabelMean

        protected JLabel m_LabelMean
        Label showing the mean of the dataset
      • m_LabelStd

        protected JLabel m_LabelStd
        Label showing the std deviation of the dataset
      • m_AttReg

        protected BaseRegExp m_AttReg
        Regular expression for choosing the attribute to plot
      • m_Index

        protected Index m_Index
        Index for choosing the attribute to plot
      • m_FileChooser

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

      • ProbabilityPlot

        public ProbabilityPlot()
    • Method Detail

      • initGUI

        protected void initGUI()
        For initializing the GUI.
        initGUI in class BasePanel
      • getPlot

        public PlotPanel getPlot()
        Returns the plot panel of the panel, null if no panel present.
        Specified by:
        getPlot in class PaintablePanel
        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
        g - the graphics context
        true if painting can go ahead
      • getData

        public SpreadSheet getData()
        get the instances used for this probability plot
        Instances plotted
      • setData

        public void setData​(SpreadSheet data)
        Set the instances to be plotted
        data - instances to be plotted
      • changeRegression

        protected void changeRegression()
        Called when the regression to plot changes
      • setRegression

        public void setRegression​(AbstractProbabilityPaintlet val)
        Set the regression to use for the probability plot
        val - Regression paintlet for transforming the data
      • changeGrid

        protected void changeGrid()
        Called when the grid checkbox changes, displays or removes the grid overlay
      • changeLine

        protected void changeLine()
        Called when the line checkbox changes, Displays or removes the regression line overlay
      • setGrid

        public void setGrid​(boolean val)
        Set whether the grid overlay is displayed.
        val - true if to display
      • getGrid

        public boolean getGrid()
        Returns whether the grid is displayed.
        true if displayed
      • setRegressionLine

        public void setRegressionLine​(boolean val)
        Set whether the regression linear line is displayed.
        val - true if to display
      • getRegressionLine

        public boolean getRegressionLine()
        Returns whether the regression line is displayed.
        true if displayed
      • setAttIndex

        public void setAttIndex​(Index val)
        Set the index to use to choose the attribute to display
        val - Index of attribute
      • getAttIndex

        public Index getAttIndex()
        Returns the index of the attribute to display.
        the index
      • setAttRegExp

        public void setAttRegExp​(BaseRegExp val)
        Set the regular expression for chossing the attribute to display.
        val - Regular expression for name of attribute
      • getAttRegExp

        public BaseRegExp getAttRegExp()
        Returns the regular expression for choosing the attribute to display.
        the expression
      • save

        protected void save()
        Saves the data as spreadsheet.