类 TimeSeriesTranslate

所有已实现的接口:
Serializable, CapabilitiesHandler, OptionHandler, RevisionHandler, UnsupervisedFilter
直接已知子类:
TimeSeriesDelta

public class TimeSeriesTranslate extends AbstractTimeSeries
An instance filter that assumes instances form time-series data and replaces attribute values in the current instance with the equivalent 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. 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).
版本:
$Revision: 5547 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • TimeSeriesTranslate

      public TimeSeriesTranslate()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this classifier
      返回:
      a description of the classifier suitable for displaying in the explorer/experimenter gui
    • getCapabilities

      public Capabilities getCapabilities()
      Returns the Capabilities of this filter.
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      覆盖:
      getCapabilities 在类中 Filter
      返回:
      the capabilities of this object
      另请参阅:
    • setInputFormat

      public boolean setInputFormat(Instances instanceInfo) throws Exception
      Sets the format of the input instances.
      覆盖:
      setInputFormat 在类中 AbstractTimeSeries
      参数:
      instanceInfo - an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).
      返回:
      true if the outputFormat may be collected immediately
      抛出:
      UnsupportedAttributeTypeException - if selected attributes are not numeric or nominal.
      Exception - if the format couldn't be set successfully
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 Filter
      返回:
      the revision
    • main

      public static void main(String[] argv)
      Main method for testing this class.
      参数:
      argv - should contain arguments to the filter: use -h for help