Class TimeSeriesDelta
java.lang.Object
weka.filters.Filter
weka.filters.unsupervised.attribute.AbstractTimeSeries
weka.filters.unsupervised.attribute.TimeSeriesTranslate
weka.filters.unsupervised.attribute.TimeSeriesDelta
- All Implemented Interfaces:
Serializable
,CapabilitiesHandler
,CapabilitiesIgnorer
,CommandlineRunnable
,OptionHandler
,RevisionHandler
,WeightedAttributesHandler
,WeightedInstancesHandler
,UnsupervisedFilter
An instance filter that assumes instances form time-series data and replaces attribute values in the current instance with the difference between the current value and the equivalent attribute attribute value of some previous (or future) instance. For instances where the time-shifted value is unknown either the instance may be dropped, or missing values used. Skips the class attribute if it is set.
Valid options are:
-R <index1,index2-index4,...> Specify list of columns to translate in time. First and last are valid indexes. (default none)
-V Invert matching sense (i.e. calculate for all non-specified columns)
-I <num> The number of instances forward to translate values between. A negative number indicates taking values from a past instance. (default -1)
-M For instances at the beginning or end of the dataset where the translated values are not known, remove those instances (default is to use missing values).
- Version:
- $Revision: 8034 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Capabilities of this filter.Returns the revision string.Returns a string describing this classifierstatic void
Main method for testing this class.boolean
setInputFormat
(Instances instanceInfo) Sets the format of the input instances.Methods inherited from class weka.filters.unsupervised.attribute.AbstractTimeSeries
attributeIndicesTipText, batchFinished, fillWithMissingTipText, getAttributeIndices, getFillWithMissing, getInstanceRange, getInvertSelection, getOptions, input, instanceRangeTipText, invertSelectionTipText, listOptions, setAttributeIndices, setAttributeIndicesArray, setFillWithMissing, setInstanceRange, setInvertSelection, setOptions
Methods inherited from class weka.filters.Filter
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
-
Constructor Details
-
TimeSeriesDelta
public TimeSeriesDelta()
-
-
Method Details
-
globalInfo
Returns a string describing this classifier- Overrides:
globalInfo
in classTimeSeriesTranslate
- Returns:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
getCapabilities
Returns the Capabilities of this filter.- Specified by:
getCapabilities
in interfaceCapabilitiesHandler
- Overrides:
getCapabilities
in classTimeSeriesTranslate
- Returns:
- the capabilities of this object
- See Also:
-
setInputFormat
Sets the format of the input instances.- Overrides:
setInputFormat
in classTimeSeriesTranslate
- Parameters:
instanceInfo
- an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).- Returns:
- true if the outputFormat may be collected immediately
- Throws:
UnsupportedAttributeTypeException
- if selected attributes are not numeric.Exception
- if the format couldn't be set successfully
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classTimeSeriesTranslate
- Returns:
- the revision
-
main
Main method for testing this class.- Parameters:
argv
- should contain arguments to the filter: use -h for help
-