public class EntropyAndPurityCalculator.LabelledCounterMapToBePutInCOMMONS extends Object
Modifier and Type | Field and Description |
---|---|
private double |
counter |
private HashMap<String,org.apache.commons.lang.mutable.MutableDouble> |
map |
Constructor and Description |
---|
EntropyAndPurityCalculator.LabelledCounterMapToBePutInCOMMONS() |
EntropyAndPurityCalculator.LabelledCounterMapToBePutInCOMMONS(String[] labels) |
Modifier and Type | Method and Description |
---|---|
Collection<org.apache.commons.lang.mutable.MutableDouble> |
entrySet() |
org.apache.commons.lang.mutable.MutableDouble |
get(String key) |
double |
getCounter()
here we count the sum of all entries
|
void |
increment(String key)
increment the counter for the given key
|
void |
incrementOrAdd(String key)
increment the counter for the given key this one checks for existence
|
Collection<String> |
keySet() |
int |
size() |
String |
toString() |
public EntropyAndPurityCalculator.LabelledCounterMapToBePutInCOMMONS()
public EntropyAndPurityCalculator.LabelledCounterMapToBePutInCOMMONS(String[] labels)
public double getCounter()
public int size()
public void increment(String key)
public void incrementOrAdd(String key)
public Collection<org.apache.commons.lang.mutable.MutableDouble> entrySet()
public Collection<String> keySet()
public org.apache.commons.lang.mutable.MutableDouble get(String key)