Package adams.ml.preprocessing
Class AbstractFilter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.ml.preprocessing.AbstractFilter
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,CapabilitiesHandler
,Filter
,Serializable
- Direct Known Subclasses:
AbstractBatchFilter
,AbstractColumnSubsetFilter
,AbstractStreamFilter
public abstract class AbstractFilter extends AbstractOptionHandler implements Filter
Ancestor for filters.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_Initialized
whether the filter has been initialized.protected Dataset
m_OutputFormat
the output format.-
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 AbstractFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendData(Row input, Row data, gnu.trove.list.TIntList cols)
Appends the column values to the row.protected void
appendHeader(SpreadSheet input, Row header, gnu.trove.list.TIntList cols)
Appends the column names to the header.Dataset
getOutputFormat()
Returns the output format.boolean
isInitialized()
Returns whether the filter has been initialized.protected void
reset()
Resets the scheme.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.ml.preprocessing.Filter
getCapabilities
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Initialized
protected boolean m_Initialized
whether the filter has been initialized.
-
m_OutputFormat
protected Dataset m_OutputFormat
the output format.
-
-
Method Detail
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classAbstractOptionHandler
-
isInitialized
public boolean isInitialized()
Returns whether the filter has been initialized.- Specified by:
isInitialized
in interfaceFilter
- Returns:
- true if initialized
-
getOutputFormat
public Dataset getOutputFormat()
Returns the output format.- Specified by:
getOutputFormat
in interfaceFilter
- Returns:
- the format, null if not yet defined
-
appendHeader
protected void appendHeader(SpreadSheet input, Row header, gnu.trove.list.TIntList cols)
Appends the column names to the header.- Parameters:
input
- the input dataheader
- the header so farcols
- the columns to append
-
-