Package adams.data.filter
Class AbstractFastWavelet<T extends DataContainer>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.AbstractFilter<T>
-
- adams.data.filter.AbstractFastWavelet<T>
-
- Type Parameters:
T
- the type of data to process
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<Filter>
,SizeOfHandler
,TechnicalInformationHandler
,Filter<T>
,Serializable
,Comparable
- Direct Known Subclasses:
TimeseriesFastWavelet
public abstract class AbstractFastWavelet<T extends DataContainer> extends AbstractFilter<T> implements TechnicalInformationHandler
Abstract ancestor for Wavelet filters based on the JSci library.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractFastWavelet.WaveletType
The type of available wavelets.-
Nested classes/interfaces inherited from class adams.data.filter.AbstractFilter
AbstractFilter.FilterJob<T extends DataContainer>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_InverseTransform
whether to perform inverse transformation (wavelet -> normal space).protected PaddingType
m_PaddingType
the type of padding to use.protected AbstractFastWavelet.WaveletType
m_WaveletType
the type of wavelet to use.-
Fields inherited from class adams.data.filter.AbstractFilter
m_DontUpdateID
-
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 AbstractFastWavelet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.boolean
getInverseTransform()
Returns whether to perform the inverse transform.PaddingType
getPaddingType()
Returns the padding type.TechnicalInformation
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.protected abstract double
getValue(DataPoint point)
Returns the X-value of the DataPoint.AbstractFastWavelet.WaveletType
getWaveletType()
Returns the wavelet type.String
globalInfo()
Returns a string describing the object.String
inverseTransformTipText()
Returns the tip text for this property.protected abstract DataPoint
newDataPoint(DataPoint oldPoint, double x)
Creates a new DataPoint based on the old one and the new X value.protected abstract DataPoint
newDataPoint(List<DataPoint> points, int index, double x)
Creates a new DataPoint based on the index and the new X value.String
paddingTypeTipText()
Returns the tip text for this property.protected T
processData(T data)
Performs the actual filtering.void
setInverseTransform(boolean value)
Sets whether to perform the inverse transform.void
setPaddingType(PaddingType value)
Sets the padding type.void
setWaveletType(AbstractFastWavelet.WaveletType value)
Sets the wavelet type.String
waveletTypeTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.filter.AbstractFilter
checkData, cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, getDontUpdateID, reset, setDontUpdateID, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_WaveletType
protected AbstractFastWavelet.WaveletType m_WaveletType
the type of wavelet to use.
-
m_PaddingType
protected PaddingType m_PaddingType
the type of padding to use.
-
m_InverseTransform
protected boolean m_InverseTransform
whether to perform inverse transformation (wavelet -> normal space).
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformation
in interfaceTechnicalInformationHandler
- Returns:
- the technical information about this class
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractFilter<T extends DataContainer>
-
setWaveletType
public void setWaveletType(AbstractFastWavelet.WaveletType value)
Sets the wavelet type.- Parameters:
value
- the wavelet type
-
getWaveletType
public AbstractFastWavelet.WaveletType getWaveletType()
Returns the wavelet type.- Returns:
- the wavelet type
-
waveletTypeTipText
public String waveletTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPaddingType
public void setPaddingType(PaddingType value)
Sets the padding type.- Parameters:
value
- the padding type
-
getPaddingType
public PaddingType getPaddingType()
Returns the padding type.- Returns:
- the padding type
-
paddingTypeTipText
public String paddingTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setInverseTransform
public void setInverseTransform(boolean value)
Sets whether to perform the inverse transform.- Parameters:
value
- true if to perform the inverse transform
-
getInverseTransform
public boolean getInverseTransform()
Returns whether to perform the inverse transform.- Returns:
- true if the inverse transform is performed
-
inverseTransformTipText
public String inverseTransformTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getValue
protected abstract double getValue(DataPoint point)
Returns the X-value of the DataPoint.- Parameters:
point
- the point to get the X-Value from- Returns:
- the X-value
-
newDataPoint
protected abstract DataPoint newDataPoint(DataPoint oldPoint, double x)
Creates a new DataPoint based on the old one and the new X value.- Parameters:
oldPoint
- the old DataPointx
- the new X value- Returns:
- the new DataPoint
-
newDataPoint
protected abstract DataPoint newDataPoint(List<DataPoint> points, int index, double x)
Creates a new DataPoint based on the index and the new X value. Used for padded points.- Parameters:
points
- the original pointsindex
- the index of the padded point in the output datax
- the new X value- Returns:
- the new DataPoint
-
processData
protected T processData(T data)
Performs the actual filtering.- Specified by:
processData
in classAbstractFilter<T extends DataContainer>
- Parameters:
data
- the data to filter- Returns:
- the filtered data
-
-