|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.filters.Filter | +--weka.filters.unsupervised.attribute.AbstractTimeSeries | +--weka.filters.unsupervised.attribute.TimeSeriesTranslate
An instance filter that assumes instances form time-series data and replaces attribute values in the current instance with the equivalent attribute attribute values of some previous (or future) instance. For instances where the desired value is unknown either the instance may be dropped, or missing values used.
Valid filter-specific options are:
-R index1,index2-index4,...
Specify list of columns to calculate new values for.
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, use missing values (default is to remove those
instances).
Constructor Summary | |
TimeSeriesTranslate()
|
Method Summary | |
java.lang.String |
globalInfo()
Returns a string describing this classifier |
static void |
main(java.lang.String[] argv)
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, filterFile, getOutputFormat, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputPeek, useFilter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeSeriesTranslate()
Method Detail |
public java.lang.String globalInfo()
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class AbstractTimeSeries
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).
UnsupportedAttributeTypeException
- if selected
attributes are not numeric or nominal.
java.lang.Exception
- if the format couldn't be set successfullypublic static void main(java.lang.String[] argv)
argv
- should contain arguments to the filter: use -h for help
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London