Package adams.data.weka.predictions
Class RelativeNumericErrorScaler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.weka.predictions.AbstractErrorScaler
-
- adams.data.weka.predictions.RelativeNumericErrorScaler
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable,weka.core.CapabilitiesHandler
public class RelativeNumericErrorScaler extends AbstractErrorScaler
Scales the errors for numeric class attributes.
Valid options are:
-max <int> (property: maxSize) The maximum size of the errors after scaling. default: 20 minimum: 1
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_MaxSizethe maximum size.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description RelativeNumericErrorScaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.weka.core.CapabilitiesgetCapabilities()Returns the capabilities of this object.intgetMaxSize()Returns the maximum size for the errors.StringglobalInfo()Returns a string describing the object.StringmaxSizeTipText()Returns the tip text for this property.ArrayListscale(ArrayList data)Scales the errors.voidsetMaxSize(int value)Sets the maximum size for the errors.-
Methods inherited from class adams.data.weka.predictions.AbstractErrorScaler
compareTo, equals, forCommandLine, forName, getErrorScalers, shallowCopy, shallowCopy, toString
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setMaxSize
public void setMaxSize(int value)
Sets the maximum size for the errors.- Parameters:
value- the size
-
getMaxSize
public int getMaxSize()
Returns the maximum size for the errors.- Returns:
- the size
-
maxSizeTipText
public String maxSizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getCapabilities
public weka.core.Capabilities getCapabilities()
Returns the capabilities of this object. Returns what types of classes the scaler can handle.- Specified by:
getCapabilitiesin interfaceweka.core.CapabilitiesHandler- Specified by:
getCapabilitiesin classAbstractErrorScaler- Returns:
- the capabilities of this object
- See Also:
Capabilities
-
scale
public ArrayList scale(ArrayList data)
Scales the errors.- Specified by:
scalein classAbstractErrorScaler- Parameters:
data- the data containing the errors to scale- Returns:
- the scaled errors
-
-