gr.demokritos.iit.jinsect.structs
Class VectorSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by gr.demokritos.iit.jinsect.structs.VectorSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class VectorSet
extends java.util.HashSet

See Also:
Serialized Form

Constructor Summary
VectorSet()
          Creates a new instance of VectorSet, expected to contain a set of Distribution objects, viewed as Vectors.
 
Method Summary
 Distribution centroid()
          Calculates the centroid of all distributions contained.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

VectorSet

public VectorSet()
Creates a new instance of VectorSet, expected to contain a set of Distribution objects, viewed as Vectors.

Method Detail

centroid

public Distribution centroid()
Calculates the centroid of all distributions contained.

Returns:
The centroid