MCPcopy Create free account
hub / github.com/WinVector/Logistic / CountMap

Method CountMap

src/com/winvector/util/CountMap.java:19–21  ·  view source on GitHub ↗
(final Comparator<T> comp)

Source from the content-addressed store, hash-verified

17 private final SortedMap<T,MutableDouble> counts;
18
19 public CountMap(final Comparator<T> comp) {
20 counts = new TreeMap<T,MutableDouble>(comp);
21 }
22
23 /**
24 * Invariant: key set calls all keys ever observed (even those with net-zero count)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected