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.HistogramOptionsm_HistogramOptionsOptions for the histogramprotected adams.gui.visualization.stats.probabilityplot.NormalPlotOptionsm_NormalPlotOptionsoptions for the normal plotprotected booleanm_UseAbsoluteErrorwhether to use absolute errors.protected adams.gui.visualization.stats.fourinone.VersusFitOptionsm_VersusFitOptionsOptions for the vs fitprotected adams.gui.visualization.stats.fourinone.VersusOrderOptionsm_VersusOrderOptionsOptions for the vs order
-
Constructor Summary
Constructors Constructor Description FourInOnePlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGenerateOutput(ResultItem item)Checks whether output can be generated from this item.protected ComponentContentPanelcreateOutput(ResultItem item, weka.classifiers.Evaluation eval, int[] originalIndices, adams.data.spreadsheet.SpreadSheet additionalAttributes, adams.core.MessageCollection errors)Generates the output for the evaluation.voiddefineOptions()Adds options to the internal list of options.adams.gui.visualization.stats.histogram.HistogramOptionsgetHistogramOptions()Get the options for the histogram.adams.gui.visualization.stats.probabilityplot.NormalPlotOptionsgetNormalPlotOptions()get the options for the normal plot.StringgetTitle()The title to use for the tab.booleangetUseAbsoluteError()Returns whether to use an absolute error (ie no direction).adams.gui.visualization.stats.fourinone.VersusFitOptionsgetVersusFitOptions()Get the options for the vsfit plot.adams.gui.visualization.stats.fourinone.VersusOrderOptionsgetVersusOrderOptions()Get the options for the vsorder plot.StringglobalInfo()Returns a string describing the object.StringhistogramOptionsTipText()Tip text for the histogram options property.StringnormalPlotOptionsTipText()tip text for the normalplot options property.voidsetHistogramOptions(adams.gui.visualization.stats.histogram.HistogramOptions value)Set the options for the histogram.voidsetNormalPlotOptions(adams.gui.visualization.stats.probabilityplot.NormalPlotOptions value)Set the options for the normal plot.voidsetUseAbsoluteError(boolean value)Sets whether to use an absolute error (ie no direction).voidsetVersusFitOptions(adams.gui.visualization.stats.fourinone.VersusFitOptions value)Set the options for the vsfit plot.voidsetVersusOrderOptions(adams.gui.visualization.stats.fourinone.VersusOrderOptions value)Set the options for the vs order plot.StringuseAbsoluteErrorTipText()Returns the tip text for this property.StringversusFitOptionsTipText()Tip text for the vs fit options property.StringversusOrderOptionsTipText()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:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin 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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin 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:
getTitlein classAbstractOutputGenerator<ResultItem>- Returns:
- the title
-
canGenerateOutput
public boolean canGenerateOutput(ResultItem item)
Checks whether output can be generated from this item.- Specified by:
canGenerateOutputin classAbstractOutputGenerator<ResultItem>- Parameters:
item- the item to check- Returns:
- true if output can be generated
-
createOutput
protected ComponentContentPanel createOutput(ResultItem item, weka.classifiers.Evaluation eval, int[] originalIndices, adams.data.spreadsheet.SpreadSheet additionalAttributes, adams.core.MessageCollection errors)
Generates the output for the evaluation.- Specified by:
createOutputin classAbstractOutputGeneratorWithSeparateFoldsSupport<ComponentContentPanel>- Parameters:
item- the item to generate output foreval- the evaluation to use as basisoriginalIndices- the original indices to use, can be nulladditionalAttributes- the additional attributes to display, can be nullerrors- for collecting errors- Returns:
- the generated table, null if failed to generate
-
-