ucs
Class Population

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

public class Population
extends java.util.ArrayList

Container class for a UCS population. This extends ArrayList, adding some utility methods specific to UCS.

Author:
Gavin Brown
See Also:
Serialized Form

Constructor Summary
Population()
           
 
Method Summary
 double averageAccuracy()
          Calculates the average accuracy of all individuals in this population.
 int numMacroClassifiers()
          Counts the number of macroclassifiers in this population.
 void print()
          Prints out every Individual in this Population.
 void printMacros()
          Prints out every unique indivual in this Population.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

Population

public Population()
Method Detail

averageAccuracy

public double averageAccuracy()
Calculates the average accuracy of all individuals in this population.

Returns:
A double providing the average accuracy.

numMacroClassifiers

public int numMacroClassifiers()
Counts the number of macroclassifiers in this population.

Returns:
An integer count of the number of macroclassifiers.

print

public void print()
Prints out every Individual in this Population.


printMacros

public void printMacros()
Prints out every unique indivual in this Population.