net.obsearch.utils
Class MultiSet<O>
java.lang.Object
net.obsearch.utils.MultiSet<O>
public class MultiSet<O>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiSet
public MultiSet(int count)
add
public void add(O object)
- Add the given object to the multiset.
- Parameters:
object
-
cardinality
public int cardinality(O object)
- Return the cardinality for the given object.
- Parameters:
object
-
- Returns:
containsKey
public boolean containsKey(Object key)
entrySet
public Set<Map.Entry<O,IntegerHolder>> entrySet()
isEmpty
public boolean isEmpty()
keySet
public Set<O> keySet()
getDistribution
public hep.aida.bin.StaticBin1D getDistribution()
- Return the statistical summary of the multi-set
- Returns:
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.