wGmdh.jGmdh.oldskul
Class SlidingFilter

java.lang.Object
  extended by wGmdh.jGmdh.oldskul.NodeFilter
      extended by wGmdh.jGmdh.oldskul.SlidingFilter
All Implemented Interfaces:
java.io.Serializable, weka.core.OptionHandler

public class SlidingFilter
extends NodeFilter

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<AttributeNode> attributeNodes
           
protected  java.util.ArrayList<Model> models
           
 
Fields inherited from class wGmdh.jGmdh.oldskul.NodeFilter
dataset
 
Constructor Summary
SlidingFilter()
           
SlidingFilter(int targetLength)
           
 
Method Summary
 Node feed(Node newNode)
          Updates the models array.
 java.lang.String[] getOptions()
           
 java.util.ArrayList<Node> getResult()
          Obtain results once you're done with feeding the filter
 int getSize()
           
 java.util.ArrayList<Model> getSortedModels()
          It's useful to have all models that have been presented to us at disposal, furthermore sorted
 int getTargetLength()
           
 java.util.Enumeration listOptions()
           
 void reset()
          Resets filter state, e.g. when you want to start filtering a new layer.
 void setOptions(java.lang.String[] options)
           
 void setTargetLength(int targetLength)
           
 
Methods inherited from class wGmdh.jGmdh.oldskul.NodeFilter
getDebug, initialize, setDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

models

protected java.util.ArrayList<Model> models

attributeNodes

protected java.util.ArrayList<AttributeNode> attributeNodes
Constructor Detail

SlidingFilter

public SlidingFilter()

SlidingFilter

public SlidingFilter(int targetLength)
Method Detail

getSize

public int getSize()

feed

public Node feed(Node newNode)
Updates the models array. It decides internally whether to call slideTransitional or slideRegular

Specified by:
feed in class NodeFilter
Parameters:
newNode - input Node object
Returns:
either a Model that gets replaced by another one or null if none got replaced

getResult

public java.util.ArrayList<Node> getResult()
Description copied from class: NodeFilter
Obtain results once you're done with feeding the filter

Specified by:
getResult in class NodeFilter
Returns:

reset

public void reset()
Description copied from class: NodeFilter
Resets filter state, e.g. when you want to start filtering a new layer.

Overrides:
reset in class NodeFilter

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Specified by:
setOptions in interface weka.core.OptionHandler
Overrides:
setOptions in class NodeFilter
Parameters:
options -
Throws:
java.lang.Exception

getOptions

public java.lang.String[] getOptions()
Specified by:
getOptions in interface weka.core.OptionHandler
Overrides:
getOptions in class NodeFilter
Returns:

listOptions

public java.util.Enumeration listOptions()
Specified by:
listOptions in interface weka.core.OptionHandler
Overrides:
listOptions in class NodeFilter

getTargetLength

public int getTargetLength()
Returns:
the targetLength

setTargetLength

public void setTargetLength(int targetLength)
Parameters:
targetLength - the targetLength to set

getSortedModels

public java.util.ArrayList<Model> getSortedModels()
Description copied from class: NodeFilter
It's useful to have all models that have been presented to us at disposal, furthermore sorted

Specified by:
getSortedModels in class NodeFilter
Returns:
sorted models