Package weka.attributeSelection
Class LFSMethods.LinkedList2
- java.lang.Object
-
- weka.core.FastVector
-
- weka.attributeSelection.LFSMethods.LinkedList2
-
- All Implemented Interfaces:
java.io.Serializable
,Copyable
,RevisionHandler
- Enclosing class:
- LFSMethods
public class LFSMethods.LinkedList2 extends FastVector
Class for handling a linked list. Used in best first search. Extends the Vector class.- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class weka.core.FastVector
FastVector.FastVectorEnumeration
-
-
Constructor Summary
Constructors Constructor Description LinkedList2(int sz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToList(java.lang.Object[] data, double mer)
adds an element (Link) to the list.LFSMethods.Link2
getLinkAt(int index)
returns the element (Link) at a specific index from the list.java.lang.String
getRevision()
Returns the revision string.void
removeLinkAt(int index)
removes an element (Link) at a specific index from the list.-
Methods inherited from class weka.core.FastVector
addElement, appendElements, capacity, contains, copy, copyElements, elementAt, elements, elements, firstElement, indexOf, insertElementAt, lastElement, removeAllElements, removeElementAt, setCapacity, setElementAt, size, swap, toArray, trimToSize
-
-
-
-
Method Detail
-
removeLinkAt
public void removeLinkAt(int index) throws java.lang.Exception
removes an element (Link) at a specific index from the list.- Parameters:
index
- the index of the element to be removed.- Throws:
java.lang.Exception
-
getLinkAt
public LFSMethods.Link2 getLinkAt(int index) throws java.lang.Exception
returns the element (Link) at a specific index from the list.- Parameters:
index
- the index of the element to be returned.- Throws:
java.lang.Exception
-
addToList
public void addToList(java.lang.Object[] data, double mer) throws java.lang.Exception
adds an element (Link) to the list.- Parameters:
gr
- the attribute set specificationmer
- the "merit" of this attribute set- Throws:
java.lang.Exception
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classFastVector
- Returns:
- the revision
-
-