|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleBatchFilter
weka.filters.unsupervised.attribute.FastWavelet
public class FastWavelet
A filter for wavelet transformation using the JSci library's fast wavelet transform (FWT) algorithms.
For more information see:
(2009). JSci - A science API for Java.
@misc{missing_id,
title = {JSci - A science API for Java},
year = {2009},
HTTP = {http://jsci.sourceforge.net/}
}
Valid options are:
-D Turns on output of debugging information.
-A <HAAR|CDF2_4|DAUBECHIES2|SYMMLET8> 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)
-inverse Whether to perform the inverse transform (from wavelet space into normal space again). (default: off)
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).
| Field Summary | |
|---|---|
static int |
ALGORITHM_CDF2_4
the type of algorithm: CDF2 4. |
static int |
ALGORITHM_DAUBECHIES2
the type of algorithm: Daubechies2. |
static int |
ALGORITHM_HAAR
the type of algorithm: Haar. |
static int |
ALGORITHM_SYMMLET8
the type of algorithm: Symmlet8. |
protected int |
m_Algorithm
the type of algorithm. |
protected weka.filters.Filter |
m_Filter
an optional filter for preprocessing of the data. |
protected boolean |
m_InverseTransform
whether to perform inverse transformation. |
protected int |
m_Padding
the type of padding. |
static int |
PADDING_ZERO
the type of padding: Zero padding. |
static weka.core.Tag[] |
TAGS_ALGORITHM
the types of algorithm. |
static weka.core.Tag[] |
TAGS_PADDING
the types of padding. |
| Fields inherited from class weka.filters.SimpleFilter |
|---|
m_Debug |
| Fields inherited from class weka.filters.Filter |
|---|
m_FirstBatchDone, m_InputRelAtts, m_InputStringAtts, m_NewBatch, m_OutputRelAtts, m_OutputStringAtts |
| Constructor Summary | |
|---|---|
FastWavelet()
default constructor. |
|
| Method Summary | |
|---|---|
String |
algorithmTipText()
Returns the tip text for this property. |
protected weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat)
Determines the output format based on the input format and returns this. |
String |
filterTipText()
Returns the tip text for this property. |
weka.core.SelectedTag |
getAlgorithm()
Gets the type of algorithm to use. |
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
weka.filters.Filter |
getFilter()
Get the preprocessing filter. |
boolean |
getInverseTransform()
Gets whether to use the inverse transform. |
String[] |
getOptions()
returns the options of the current setup. |
weka.core.SelectedTag |
getPadding()
Gets the type of Padding to use. |
String |
getRevision()
Returns the revision string. |
weka.core.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. |
String |
globalInfo()
Returns a string describing this classifier. |
protected weka.core.Instances |
inverse(weka.core.Instances data)
Renames the attributes when using the inverse transform. |
String |
inverseTransformTipText()
Returns the tip text for this property. |
Enumeration |
listOptions()
Gets an enumeration describing the available options. |
static void |
main(String[] args)
runs the filter with the given arguments. |
protected static int |
nextPowerOf2(int n)
returns the next bigger number that's a power of 2. |
protected weka.core.Instances |
pad(weka.core.Instances data)
pads the data to conform to the necessary number of attributes. |
String |
paddingTipText()
Returns the tip text for this property. |
protected weka.core.Instances |
process(weka.core.Instances instances)
Processes the given data (may change the provided dataset) and returns the modified version. |
protected weka.core.Instances |
processData(weka.core.Instances instances)
processes the instances using the HAAR/JSci algorithm. |
void |
setAlgorithm(weka.core.SelectedTag value)
Sets the type of algorithm to use. |
void |
setFilter(weka.filters.Filter value)
Set the preprocessing filter (only used for setup). |
void |
setInverseTransform(boolean value)
Sets whether to use the inverse tranform. |
void |
setOptions(String[] options)
Parses the options for this object. |
void |
setPadding(weka.core.SelectedTag value)
Sets the type of Padding to use. |
| Methods inherited from class weka.filters.SimpleBatchFilter |
|---|
batchFinished, hasImmediateOutputFormat, input |
| Methods inherited from class weka.filters.SimpleFilter |
|---|
debugTipText, getDebug, reset, setDebug, setInputFormat |
| Methods inherited from class weka.filters.Filter |
|---|
batchFilterFile, bufferInput, copyValues, copyValues, filterFile, flushInput, getCapabilities, getInputFormat, getOutputFormat, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputFormatPeek, outputPeek, push, resetQueue, runFilter, setOutputFormat, testInputFormat, toString, useFilter, wekaStaticWrapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALGORITHM_HAAR
public static final int ALGORITHM_CDF2_4
public static final int ALGORITHM_DAUBECHIES2
public static final int ALGORITHM_SYMMLET8
public static final weka.core.Tag[] TAGS_ALGORITHM
public static final int PADDING_ZERO
public static final weka.core.Tag[] TAGS_PADDING
protected weka.filters.Filter m_Filter
protected int m_Algorithm
protected int m_Padding
protected boolean m_InverseTransform
| Constructor Detail |
|---|
public FastWavelet()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class weka.filters.SimpleFilterpublic weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface weka.core.TechnicalInformationHandlerpublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.filters.SimpleFilterpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.filters.SimpleFilter
public void setOptions(String[] options)
throws Exception
-D Turns on output of debugging information.
-A <HAAR|CDF2_4|DAUBECHIES2|SYMMLET8> 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)
-inverse Whether to perform the inverse transform (from wavelet space into normal space again). (default: off)
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).
setOptions in interface weka.core.OptionHandlersetOptions in class weka.filters.SimpleFilteroptions - the options to use
Exception - if the option setting failspublic String filterTipText()
public void setFilter(weka.filters.Filter value)
value - the preprocessing filter.public weka.filters.Filter getFilter()
public String algorithmTipText()
public void setAlgorithm(weka.core.SelectedTag value)
value - the algorithm typepublic weka.core.SelectedTag getAlgorithm()
public String paddingTipText()
public void setPadding(weka.core.SelectedTag value)
value - the Padding typepublic weka.core.SelectedTag getPadding()
public String inverseTransformTipText()
public void setInverseTransform(boolean value)
value - true if to use inverse transformpublic boolean getInverseTransform()
protected static int nextPowerOf2(int n)
n - the number to start from
protected weka.core.Instances pad(weka.core.Instances data)
data - the data to pad
protected weka.core.Instances inverse(weka.core.Instances data)
data - the data to transform.
protected weka.core.Instances determineOutputFormat(weka.core.Instances inputFormat)
throws Exception
determineOutputFormat in class weka.filters.SimpleFilterinputFormat - the input format to base the output format on
Exception - in case the determination goes wrongSimpleBatchFilter.hasImmediateOutputFormat(),
SimpleBatchFilter.batchFinished()
protected weka.core.Instances processData(weka.core.Instances instances)
throws Exception
instances - the data to process
Exception - in case the processing goes wrongFastHaarpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.filters.FilterCapabilities
protected weka.core.Instances process(weka.core.Instances instances)
throws Exception
process in class weka.filters.SimpleFilterinstances - the data to process
Exception - in case the processing goes wrongSimpleBatchFilter.batchFinished()public String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.filters.Filterpublic static void main(String[] args)
args - the commandline arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||