Class FourInOnePlot
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.tools.wekainvestigator.output.AbstractOutputGenerator<ResultItem>
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGenerator
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGeneratorWithSeparateFoldsSupport<ComponentContentPanel>
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.FourInOnePlot
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
public class FourInOnePlot extends AbstractOutputGeneratorWithSeparateFoldsSupport<ComponentContentPanel>
Generates the 4-in-1 plot: normal plot, histogram, residuals vs fit and vs order.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.gui.visualization.stats.histogram.HistogramOptions
m_HistogramOptions
Options for the histogramprotected adams.gui.visualization.stats.probabilityplot.NormalPlotOptions
m_NormalPlotOptions
options for the normal plotprotected boolean
m_UseAbsoluteError
whether to use absolute errors.protected adams.gui.visualization.stats.fourinone.VersusFitOptions
m_VersusFitOptions
Options for the vs fitprotected adams.gui.visualization.stats.fourinone.VersusOrderOptions
m_VersusOrderOptions
Options for the vs order
-
Constructor Summary
Constructors Constructor Description FourInOnePlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateOutput(ResultItem item)
Checks whether output can be generated from this item.protected ComponentContentPanel
createOutput(weka.classifiers.Evaluation eval, adams.core.MessageCollection errors)
Creates the 4-in-1 plot for the evaluation.void
defineOptions()
Adds options to the internal list of options.adams.gui.visualization.stats.histogram.HistogramOptions
getHistogramOptions()
Get the options for the histogram.adams.gui.visualization.stats.probabilityplot.NormalPlotOptions
getNormalPlotOptions()
get the options for the normal plot.String
getTitle()
The title to use for the tab.boolean
getUseAbsoluteError()
Returns whether to use an absolute error (ie no direction).adams.gui.visualization.stats.fourinone.VersusFitOptions
getVersusFitOptions()
Get the options for the vsfit plot.adams.gui.visualization.stats.fourinone.VersusOrderOptions
getVersusOrderOptions()
Get the options for the vsorder plot.String
globalInfo()
Returns a string describing the object.String
histogramOptionsTipText()
Tip text for the histogram options property.String
normalPlotOptionsTipText()
tip text for the normalplot options property.void
setHistogramOptions(adams.gui.visualization.stats.histogram.HistogramOptions value)
Set the options for the histogram.void
setNormalPlotOptions(adams.gui.visualization.stats.probabilityplot.NormalPlotOptions value)
Set the options for the normal plot.void
setUseAbsoluteError(boolean value)
Sets whether to use an absolute error (ie no direction).void
setVersusFitOptions(adams.gui.visualization.stats.fourinone.VersusFitOptions value)
Set the options for the vsfit plot.void
setVersusOrderOptions(adams.gui.visualization.stats.fourinone.VersusOrderOptions value)
Set the options for the vs order plot.String
useAbsoluteErrorTipText()
Returns the tip text for this property.String
versusFitOptionsTipText()
Tip text for the vs fit options property.String
versusOrderOptionsTipText()
Tip text for the vsorder options property.-
Methods inherited from class adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGeneratorWithSeparateFoldsSupport
createOutput
-
Methods inherited from class adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGenerator
addPage, newMultiPagePane
-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractOutputGenerator
addTab, generateOutput
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_UseAbsoluteError
protected boolean m_UseAbsoluteError
whether to use absolute errors.
-
m_NormalPlotOptions
protected adams.gui.visualization.stats.probabilityplot.NormalPlotOptions m_NormalPlotOptions
options for the normal plot
-
m_HistogramOptions
protected adams.gui.visualization.stats.histogram.HistogramOptions m_HistogramOptions
Options for the histogram
-
m_VersusFitOptions
protected adams.gui.visualization.stats.fourinone.VersusFitOptions m_VersusFitOptions
Options for the vs fit
-
m_VersusOrderOptions
protected adams.gui.visualization.stats.fourinone.VersusOrderOptions m_VersusOrderOptions
Options for the vs order
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.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 interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
setUseAbsoluteError
public void setUseAbsoluteError(boolean value)
Sets whether to use an absolute error (ie no direction).- Parameters:
value
- true if to use absolute error
-
getUseAbsoluteError
public boolean getUseAbsoluteError()
Returns whether to use an absolute error (ie no direction).- Returns:
- true if to use absolute error
-
useAbsoluteErrorTipText
public String useAbsoluteErrorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setHistogramOptions
public void setHistogramOptions(adams.gui.visualization.stats.histogram.HistogramOptions value)
Set the options for the histogram.- Parameters:
value
- Histogramoptions object containing the options
-
getHistogramOptions
public adams.gui.visualization.stats.histogram.HistogramOptions getHistogramOptions()
Get the options for the histogram.- Returns:
- Histogramoptions object containing the options for the histogram
-
histogramOptionsTipText
public String histogramOptionsTipText()
Tip text for the histogram options property.- Returns:
- String describing the property
-
setVersusOrderOptions
public void setVersusOrderOptions(adams.gui.visualization.stats.fourinone.VersusOrderOptions value)
Set the options for the vs order plot.- Parameters:
value
- Versusorderoptions object containing the options
-
getVersusOrderOptions
public adams.gui.visualization.stats.fourinone.VersusOrderOptions getVersusOrderOptions()
Get the options for the vsorder plot.- Returns:
- Versusorder object containing the options
-
versusOrderOptionsTipText
public String versusOrderOptionsTipText()
Tip text for the vsorder options property.- Returns:
- String describing the property
-
setVersusFitOptions
public void setVersusFitOptions(adams.gui.visualization.stats.fourinone.VersusFitOptions value)
Set the options for the vsfit plot.- Parameters:
value
- Vsfiroptions object containing the options
-
getVersusFitOptions
public adams.gui.visualization.stats.fourinone.VersusFitOptions getVersusFitOptions()
Get the options for the vsfit plot.- Returns:
- vsfitoptions object containing the options
-
versusFitOptionsTipText
public String versusFitOptionsTipText()
Tip text for the vs fit options property.- Returns:
- String describing the property
-
setNormalPlotOptions
public void setNormalPlotOptions(adams.gui.visualization.stats.probabilityplot.NormalPlotOptions value)
Set the options for the normal plot.- Parameters:
value
- Normalplotoptions object containing the options
-
getNormalPlotOptions
public adams.gui.visualization.stats.probabilityplot.NormalPlotOptions getNormalPlotOptions()
get the options for the normal plot.- Returns:
- Normalplotoptions object containing the options
-
normalPlotOptionsTipText
public String normalPlotOptionsTipText()
tip text for the normalplot options property.- Returns:
- String describing the property
-
getTitle
public String getTitle()
The title to use for the tab.- Specified by:
getTitle
in classAbstractOutputGenerator<ResultItem>
- Returns:
- the title
-
canGenerateOutput
public boolean canGenerateOutput(ResultItem item)
Checks whether output can be generated from this item.- Specified by:
canGenerateOutput
in classAbstractOutputGenerator<ResultItem>
- Parameters:
item
- the item to check- Returns:
- true if output can be generated
-
createOutput
protected ComponentContentPanel createOutput(weka.classifiers.Evaluation eval, adams.core.MessageCollection errors)
Creates the 4-in-1 plot for the evaluation.- Specified by:
createOutput
in classAbstractOutputGeneratorWithSeparateFoldsSupport<ComponentContentPanel>
- Parameters:
eval
- the evaluation to useerrors
- for collecting errors- Returns:
- the generated plot
-
-