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

Method get

src/com/winvector/util/CountMap.java:52–59  ·  view source on GitHub ↗
(final T key)

Source from the content-addressed store, hash-verified

50 }
51
52 public double get(final T key) {
53 final MutableDouble v = counts.get(key);
54 if(v!=null) {
55 return v.v;
56 } else {
57 return 0.0;
58 }
59 }
60
61 private static class StrCmp implements Comparator<String>, Serializable {
62 private static final long serialVersionUID = 1L;

Callers 1

observeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected