weka.clusterers
Class Seeder

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byweka.clusterers.Seeder
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Seeder
extends java.util.ArrayList

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList m_CurrentSeedInstances
          Stores the current instances which are set as seeds
protected  java.util.HashMap m_TotalSeedHash
          Stores the mapping between all possible seeds and their cluster assignments
protected  boolean m_Verbose
          Verbose?
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Seeder(java.util.HashMap totalSeedHash)
           
Seeder(Instances dataWithoutClass, Instances dataWithClass)
          Constructor
 
Method Summary
 void createSeeds(java.util.ArrayList seed_data)
          Set the current seeds
 java.util.HashMap getAllSeeds()
          Returns the total hashMap, with the instance to cluster assignment mapping for all the seeds
 java.util.HashMap getSeeds()
          Returns a hashMap with the instance to cluster assignment mapping for the current seeds
 void setVerbose(boolean verbose)
          set the verbosity level of the clusterer
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

m_TotalSeedHash

protected java.util.HashMap m_TotalSeedHash
Stores the mapping between all possible seeds and their cluster assignments


m_CurrentSeedInstances

protected java.util.ArrayList m_CurrentSeedInstances
Stores the current instances which are set as seeds


m_Verbose

protected boolean m_Verbose
Verbose?

Constructor Detail

Seeder

public Seeder(java.util.HashMap totalSeedHash)

Seeder

public Seeder(Instances dataWithoutClass,
              Instances dataWithClass)
       throws java.lang.Exception
Constructor

Method Detail

setVerbose

public void setVerbose(boolean verbose)
set the verbosity level of the clusterer

Parameters:
verbose - messages on(true) or off (false)

createSeeds

public void createSeeds(java.util.ArrayList seed_data)
Set the current seeds


getAllSeeds

public java.util.HashMap getAllSeeds()
                              throws java.lang.Exception
Returns the total hashMap, with the instance to cluster assignment mapping for all the seeds

Returns:
the total hashMap
Throws:
java.lang.Exception

getSeeds

public java.util.HashMap getSeeds()
                           throws java.lang.Exception
Returns a hashMap with the instance to cluster assignment mapping for the current seeds

Returns:
the seed hashMap
Throws:
java.lang.Exception