程序包 weka.filters

类 MultiFilter

所有已实现的接口:
Serializable, CapabilitiesHandler, OptionHandler, RevisionHandler, StreamableFilter

public class MultiFilter extends SimpleStreamFilter
Applies several filters successively. In case all supplied filters are StreamableFilters, it will act as a streamable one, too.

Valid options are:

 -D
  Turns on output of debugging information.
 -F <classname [options]>
  A filter to apply (can be specified multiple times).
版本:
$Revision: 9718 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • MultiFilter

      public MultiFilter()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this filter
      指定者:
      globalInfo 在类中 SimpleFilter
      返回:
      a description of the filter suitable for displaying in the explorer/experimenter gui
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 SimpleFilter
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a list of options for this object.

      Valid options are:

       -D
        Turns on output of debugging information.
       -F <classname [options]>
        A filter to apply (can be specified multiple times).
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 SimpleFilter
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
      另请参阅:
      • SimpleFilter.reset()
    • getOptions

      public String[] getOptions()
      Gets the current settings of the filter.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 SimpleFilter
      返回:
      an array of strings suitable for passing to setOptions
    • getCapabilities

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

      public void setFilters(Filter[] filters)
      Sets the list of possible filters to choose from. Also resets the state of the filter (this reset doesn't affect the options).
      参数:
      filters - an array of filters with all options set.
      另请参阅:
      • reset()
    • getFilters

      public Filter[] getFilters()
      Gets the list of possible filters to choose from.
      返回:
      the array of Filters
    • filtersTipText

      public String filtersTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • getFilter

      public Filter getFilter(int index)
      Gets a single filter from the set of available filters.
      参数:
      index - the index of the filter wanted
      返回:
      the Filter
    • isStreamableFilter

      public boolean isStreamableFilter()
      tests whether all the enclosed filters are streamable
      返回:
      true if all the enclosed filters are streamable
    • batchFinished

      public boolean batchFinished() throws Exception
      Signify that this batch of input to the filter is finished. If the filter requires all instances prior to filtering, output() may now be called to retrieve the filtered instances. Any subsequent instances filtered should be filtered based on setting obtained from the first batch (unless the setInputFormat has been re-assigned or new options have been set).
      覆盖:
      batchFinished 在类中 SimpleStreamFilter
      返回:
      true if there are instances pending output
      抛出:
      IllegalStateException - if no input format has been set.
      NullPointerException - if no input structure has been defined,
      Exception - if there was a problem finishing the batch.
    • getRevision

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

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