Class Wavelet
- java.lang.Object
-
- weka.filters.Filter
-
- weka.filters.SimpleFilter
-
- weka.filters.SimpleBatchFilter
-
- weka.filters.unsupervised.attribute.Wavelet
-
- All Implemented Interfaces:
java.io.Serializable,CapabilitiesHandler,OptionHandler,RevisionHandler,TechnicalInformationHandler
public class Wavelet extends SimpleBatchFilter implements TechnicalInformationHandler
A filter for wavelet transformation.
For more information see:
Wikipedia (2004). Discrete wavelet transform.
Kristian Sandberg (2000). The Haar wavelet transform. University of Colorado at Boulder, USA. BibTeX:@misc{Wikipedia2004, author = {Wikipedia}, title = {Discrete wavelet transform}, year = {2004}, HTTP = {http://en.wikipedia.org/wiki/Discrete_wavelet_transform} } @misc{Sandberg2000, address = {University of Colorado at Boulder, USA}, author = {Kristian Sandberg}, institution = {Dept. of Applied Mathematics}, title = {The Haar wavelet transform}, year = {2000}, HTTP = {http://amath.colorado.edu/courses/5720/2000Spr/Labs/Haar/haar.html} }Valid options are:-D Turns on output of debugging information.
-A <Haar> The algorithm to use. (default: HAAR)
-P <Zero> The padding to use. (default: ZERO)
-F <filter specification> The filter to use as preprocessing step (classname and options). (default: MultiFilter with ReplaceMissingValues and Normalize)
Options specific to filter weka.filters.MultiFilter ('-F'):-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
- Version:
- $Revision: 5547 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intALGORITHM_HAARthe type of algorithm: Haar waveletstatic intPADDING_ZEROthe type of padding: Zero paddingstatic Tag[]TAGS_ALGORITHMthe types of algorithmstatic Tag[]TAGS_PADDINGthe types of padding
-
Constructor Summary
Constructors Constructor Description Wavelet()default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringalgorithmTipText()Returns the tip text for this propertyjava.lang.StringfilterTipText()Returns the tip text for this propertySelectedTaggetAlgorithm()Gets the type of algorithm to useCapabilitiesgetCapabilities()Returns the Capabilities of this filter.FiltergetFilter()Get the preprocessing filter.java.lang.String[]getOptions()returns the options of the current setupSelectedTaggetPadding()Gets the type of Padding to usejava.lang.StringgetRevision()Returns the revision string.TechnicalInformationgetTechnicalInformation()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.java.lang.StringglobalInfo()Returns a string describing this classifier.java.util.EnumerationlistOptions()Gets an enumeration describing the available options.static voidmain(java.lang.String[] args)runs the filter with the given argumentsjava.lang.StringpaddingTipText()Returns the tip text for this propertyvoidsetAlgorithm(SelectedTag value)Sets the type of algorithm to usevoidsetFilter(Filter value)Set the preprocessing filter (only used for setup).voidsetOptions(java.lang.String[] options)Parses the options for this object.voidsetPadding(SelectedTag value)Sets the type of Padding to use-
Methods inherited from class weka.filters.SimpleBatchFilter
batchFinished, input
-
Methods inherited from class weka.filters.SimpleFilter
debugTipText, getDebug, setDebug, setInputFormat
-
Methods inherited from class weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
-
-
-
Field Detail
-
ALGORITHM_HAAR
public static final int ALGORITHM_HAAR
the type of algorithm: Haar wavelet- See Also:
- Constant Field Values
-
TAGS_ALGORITHM
public static final Tag[] TAGS_ALGORITHM
the types of algorithm
-
PADDING_ZERO
public static final int PADDING_ZERO
the type of padding: Zero padding- See Also:
- Constant Field Values
-
TAGS_PADDING
public static final Tag[] TAGS_PADDING
the types of padding
-
-
Method Detail
-
globalInfo
public java.lang.String globalInfo()
Returns a string describing this classifier.- Specified by:
globalInfoin classSimpleFilter- Returns:
- a description of the classifier suitable for displaying in the explorer/experimenter 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:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
listOptions
public java.util.Enumeration listOptions()
Gets an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classSimpleFilter- Returns:
- an enumeration of all the available options.
-
getOptions
public java.lang.String[] getOptions()
returns the options of the current setup- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classSimpleFilter- Returns:
- the current options
-
setOptions
public void setOptions(java.lang.String[] options) throws java.lang.ExceptionParses the options for this object. Valid options are:-D Turns on output of debugging information.
-A <Haar> The algorithm to use. (default: HAAR)
-P <Zero> The padding to use. (default: ZERO)
-F <filter specification> The filter to use as preprocessing step (classname and options). (default: MultiFilter with ReplaceMissingValues and Normalize)
Options specific to filter weka.filters.MultiFilter ('-F'):-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classSimpleFilter- Parameters:
options- the options to use- Throws:
java.lang.Exception- if the option setting fails- See Also:
SimpleFilter.reset()
-
filterTipText
public java.lang.String filterTipText()
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setFilter
public void setFilter(Filter value)
Set the preprocessing filter (only used for setup).- Parameters:
value- the preprocessing filter.
-
getFilter
public Filter getFilter()
Get the preprocessing filter.- Returns:
- the preprocessing filter
-
algorithmTipText
public java.lang.String algorithmTipText()
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setAlgorithm
public void setAlgorithm(SelectedTag value)
Sets the type of algorithm to use- Parameters:
value- the algorithm type
-
getAlgorithm
public SelectedTag getAlgorithm()
Gets the type of algorithm to use- Returns:
- the current algorithm type.
-
paddingTipText
public java.lang.String paddingTipText()
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setPadding
public void setPadding(SelectedTag value)
Sets the type of Padding to use- Parameters:
value- the Padding type
-
getPadding
public SelectedTag getPadding()
Gets the type of Padding to use- Returns:
- the current Padding type.
-
getCapabilities
public Capabilities getCapabilities()
Returns the Capabilities of this filter.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Overrides:
getCapabilitiesin classFilter- Returns:
- the capabilities of this object
- See Also:
Capabilities
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classFilter- Returns:
- the revision
-
main
public static void main(java.lang.String[] args)
runs the filter with the given arguments- Parameters:
args- the commandline arguments
-
-