Class SMOset
- java.lang.Object
-
- weka.classifiers.functions.supportVector.SMOset
-
- All Implemented Interfaces:
java.io.Serializable,RevisionHandler
public class SMOset extends java.lang.Object implements java.io.Serializable, RevisionHandler
Stores a set of integer of a given size.- Version:
- $Revision: 1.5 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SMOset(int size)Creates a new set of the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int index)Checks whether an element is in the set.voiddelete(int index)Deletes an element from the set.intgetNext(int index)Gets the next element in the set.java.lang.StringgetRevision()Returns the revision string.voidinsert(int index)Inserts an element into the set.intnumElements()Returns the number of elements in the set.voidprintElements()Prints all the current elements in the set.
-
-
-
Method Detail
-
contains
public boolean contains(int index)
Checks whether an element is in the set.
-
delete
public void delete(int index)
Deletes an element from the set.
-
insert
public void insert(int index)
Inserts an element into the set.
-
getNext
public int getNext(int index)
Gets the next element in the set. -1 gets the first one.
-
printElements
public void printElements()
Prints all the current elements in the set.
-
numElements
public int numElements()
Returns the number of elements in the set.
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
-