weka.classifiers.functions.supportVector
Class SMOset

java.lang.Object
  extended byweka.classifiers.functions.supportVector.SMOset
All Implemented Interfaces:
java.io.Serializable

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)
See Also:
Serialized Form

Field Summary
private  int m_first
          The first element in the set
private  boolean[] m_indicators
          Indicators
private  int[] m_next
          The next element for each element
private  int m_number
          The current number of elements in the set
private  int[] m_previous
          The previous element for each element
 
Constructor Summary
SMOset(int size)
          Creates a new set of the given size.
 
Method Summary
 boolean contains(int index)
          Checks whether an element is in the set.
 void delete(int index)
          Deletes an element from the set.
 int getNext(int index)
          Gets the next element in the set. -1 gets the first one.
 void insert(int index)
          Inserts an element into the set.
 int numElements()
          Returns the number of elements in the set.
 void printElements()
          Prints all the current elements in the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_number

private int m_number
The current number of elements in the set


m_first

private int m_first
The first element in the set


m_indicators

private boolean[] m_indicators
Indicators


m_next

private int[] m_next
The next element for each element


m_previous

private int[] m_previous
The previous element for each element

Constructor Detail

SMOset

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

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.