public class PAATransformer
extends weka.filters.SimpleStreamFilter
implements weka.filters.UnsupervisedFilter, weka.core.TechnicalInformationHandler
-R <index1,index2-index3,...> Specifies the attributes that should be transformed. The attributes must be relational attributes and must contain only numeric attributes which are each transformed separately. First and last are valid indices. (default Empty)
-V Inverts the specified attribute range (default don't invert)
-W <CompressionFactor> Specifies the compression factor w for the PAA transformation. A time series of length n will be compressed to one of length w. (default 100).
Constructor and Description |
---|
PAATransformer() |
Modifier and Type | Method and Description |
---|---|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getInvertRange()
Returns whether the attribute ranges should be inverted
|
weka.core.Capabilities |
getMultiInstanceCapabilities()
Returns the capabilities of this multi-instance filter for the relational
data (i.e., the bags).
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRange()
Gets the attribute ranges to which the filter should be applied
|
java.lang.String |
getRevision()
Returns the revision string.
|
weka.core.TechnicalInformation |
getTechnicalInformation() |
int |
getW()
Gets the
W factor for the PAA transformation |
java.lang.String |
globalInfo()
Returns a string describing this filter.
|
java.lang.String |
invertRangeTipText()
Returns the tip text for the invert range option
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for running this filter.
|
java.lang.String |
rangeTipText()
Returns the tip text for the
ranges option |
boolean |
setInputFormat(weka.core.Instances instanceInfo)
This method needs to be called before the filter is used to transform instances.
|
void |
setInvertRange(boolean inversion)
Sets whether the attribute ranges should be inverted
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options
|
void |
setRange(java.lang.String range)
Sets the attribute ranges to which the filter should be applied
|
void |
setW(int W)
Sets the
W factor for the PAA transformation |
java.lang.String |
wTipText()
Returns the tip text for the
W parameter |
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.filters.Filter
public weka.core.Capabilities getMultiInstanceCapabilities()
Capabilities
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.filters.Filter
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.filters.Filter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-R <index1,index2-index3,...> Specifies the attributes that should be transformed. The attributes must be relational attributes and must contain only numeric attributes which are each transformed separately. First and last are valid indices. (default Empty)
-V Inverts the specified attribute range (default don't invert)
-W <CompressionFactor> Specifies the compression factor w for the PAA transformation. A time series of length n will be compressed to one of length w. (default 100).
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.filters.Filter
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic int getW()
W
factor for the PAA transformationW
factorpublic void setW(int W)
W
factor for the PAA transformationW
- the W
factorpublic java.lang.String wTipText()
W
parameterpublic java.lang.String getRange()
public void setRange(java.lang.String range)
range
- the attribute rangespublic java.lang.String rangeTipText()
ranges
optionpublic boolean getInvertRange()
public void setInvertRange(boolean inversion)
inversion
- inversionpublic java.lang.String invertRangeTipText()
public java.lang.String globalInfo()
globalInfo
in class weka.filters.SimpleFilter
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.filters.Filter
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public boolean setInputFormat(weka.core.Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class weka.filters.SimpleFilter
java.lang.Exception
public static void main(java.lang.String[] args)
args
- arguments for the filter: use -h for help