wGmdh.jGmdh.oldskul
Class SlidingFilter
java.lang.Object
wGmdh.jGmdh.oldskul.NodeFilter
wGmdh.jGmdh.oldskul.SlidingFilter
- All Implemented Interfaces:
- java.io.Serializable, weka.core.OptionHandler
public class SlidingFilter
- extends NodeFilter
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
models
protected java.util.ArrayList<Model> models
attributeNodes
protected java.util.ArrayList<AttributeNode> attributeNodes
SlidingFilter
public SlidingFilter()
SlidingFilter
public SlidingFilter(int targetLength)
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