public class FractionalMultiset<K>
extends java.lang.Object
Constructor and Description |
---|
FractionalMultiset() |
FractionalMultiset(java.util.Map<K,java.lang.Double> map) |
Modifier and Type | Method and Description |
---|---|
void |
add(K k,
double val) |
void |
clear() |
java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> |
entriesInDecreasingOrder() |
java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> |
entriesInIncreasingOrder() |
java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> |
entrySet() |
double |
getValue(K k) |
int |
numKeys() |
void |
turnTotalIntoAverage(Multiset<K> counts) |
public FractionalMultiset()
public FractionalMultiset(java.util.Map<K,java.lang.Double> map)
public void clear()
public int numKeys()
public void add(K k, double val)
public double getValue(K k)
public java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> entrySet()
public java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> entriesInDecreasingOrder()
public java.lang.Iterable<java.util.Map.Entry<K,java.lang.Double>> entriesInIncreasingOrder()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.