All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.functions.supportVector.SMOset

java.lang.Object
    |
    +----weka.classifiers.functions.supportVector.SMOset

public class SMOset
extends java.lang.Object
implements java.io.Serializable
Stores a set of integer of a given size.

Version:
$$
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)

Constructor Index

 o SMOset(int)
Creates a new set of the given size.

Method Index

 o contains(int)
Checks whether an element is in the set.
 o delete(int)
Deletes an element from the set.
 o getNext(int)
Gets the next element in the set.
 o insert(int)
Inserts an element into the set.
 o numElements()
Returns the number of elements in the set.
 o printElements()
Prints all the current elements in the set.

Constructor Detail

 o SMOset
public SMOset(int size)
          Creates a new set of the given size.

Method Detail

 o contains
public boolean contains(int index)
          Checks whether an element is in the set.
 o delete
public void delete(int index)
          Deletes an element from the set.
 o insert
public void insert(int index)
          Inserts an element into the set.
 o getNext
public int getNext(int index)
          Gets the next element in the set. -1 gets the first one.
 o printElements
public void printElements()
          Prints all the current elements in the set.
 o numElements
public int numElements()
          Returns the number of elements in the set.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home