程序包 weka.filters

类 SimpleFilter

java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
所有已实现的接口:
Serializable, CapabilitiesHandler, OptionHandler, RevisionHandler
直接已知子类:
SimpleBatchFilter, SimpleStreamFilter

public abstract class SimpleFilter extends Filter implements OptionHandler
This filter contains common behavior of the SimpleBatchFilter and the SimpleStreamFilter.
版本:
$Revision: 1.4 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • SimpleFilter

      public SimpleFilter()
  • 方法详细资料

    • globalInfo

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

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

      public void setOptions(String[] options) throws Exception
      Parses a list of options for this object. Also resets the state of the filter (this reset doesn't affect the options).
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
      另请参阅:
      • reset()
    • getOptions

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

      public void setDebug(boolean value)
      Sets the debugging mode
      参数:
      value - if true, debugging information is output
    • getDebug

      public boolean getDebug()
      Returns the current debugging mode state.
      返回:
      true if debugging mode is on
    • debugTipText

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

      public boolean setInputFormat(Instances instanceInfo) throws Exception
      Sets the format of the input instances. Also resets the state of the filter (this reset doesn't affect the options).
      覆盖:
      setInputFormat 在类中 Filter
      参数:
      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
      抛出:
      Exception - if the inputFormat can't be set successfully
      另请参阅:
      • reset()