weka.attributeSelection
Class BestFirst.LinkedList2
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
weka.core.FastVector
weka.attributeSelection.BestFirst.LinkedList2
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess, Copyable, RevisionHandler
- Enclosing class:
- BestFirst
public class BestFirst.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
| Methods inherited from class weka.core.FastVector |
addElement, appendElements, copy, copyElements, elementAt, elements, elements, firstElement, insertElementAt, lastElement, removeAllElements, removeElementAt, setCapacity, setElementAt, swap |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
BestFirst.LinkedList2
public BestFirst.LinkedList2(int sz)
removeLinkAt
public void removeLinkAt(int index)
throws Exception
- removes an element (Link) at a specific index from the list.
- Parameters:
index - the index of the element to be removed.
- Throws:
Exception
getLinkAt
public BestFirst.Link2 getLinkAt(int index)
throws Exception
- returns the element (Link) at a specific index from the list.
- Parameters:
index - the index of the element to be returned.
- Throws:
Exception
addToList
public void addToList(Object[] data,
double mer)
throws Exception
- adds an element (Link) to the list.
- Parameters:
data - the attribute set specificationmer - the "merit" of this attribute set
- Throws:
Exception
getRevision
public String getRevision()
- Returns the revision string.
- Specified by:
getRevision in interface RevisionHandler- Overrides:
getRevision in class FastVector
- Returns:
- the revision
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.