public abstract class AbstractPlotInstances extends Object implements Serializable, OptionHandler
Constructor and Description |
---|
AbstractPlotInstances()
Initializes the container.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
For freeing up memory.
|
Instances |
getInstances()
Returns the training data.
|
String[] |
getOptions()
Gets the current option settings for the OptionHandler.
|
PlotData2D |
getPlotData(String name)
Assembles and returns the plot.
|
Instances |
getPlotInstances()
Returns the generated plot instances.
|
Enumeration |
listOptions()
Returns an enumeration of all the available options.
|
void |
setInstances(Instances value)
Sets the instances that are the basis for the plot instances.
|
void |
setOptions(String[] options)
Sets the OptionHandler's options using the given list.
|
void |
setUp()
Performs checks, sets up the structure for the plot instances.
|
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public void setInstances(Instances value)
value
- the training data to initialize withpublic Instances getInstances()
public void setUp()
public Instances getPlotInstances()
public PlotData2D getPlotData(String name) throws Exception
name
- the name of the plotException
- if plot generation failspublic void cleanUp()
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.