All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.filters.TimeSeriesTranslateFilter
java.lang.Object
|
+----weka.filters.Filter
|
+----weka.filters.AbstractTimeSeriesFilter
|
+----weka.filters.TimeSeriesTranslateFilter
- public class TimeSeriesTranslateFilter
- extends AbstractTimeSeriesFilter
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).
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
TimeSeriesTranslateFilter()
-
-
main(String[])
- Main method for testing this class.
-
setInputFormat(Instances)
- Sets the format of the input instances.
TimeSeriesTranslateFilter
public TimeSeriesTranslateFilter()
setInputFormat
public boolean setInputFormat(Instances instanceInfo) throws Exception
- Sets the format of the input instances.
- 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 or nominal.
- Overrides:
- setInputFormat in class AbstractTimeSeriesFilter
main
public static void main(String argv[])
- Main method for testing this class.
- Parameters:
- argv - should contain arguments to the filter: use -h for help
All Packages Class Hierarchy This Package Previous Next Index WEKA's home