MCPcopy Create free account
hub / github.com/antlr/codebuff / votes

Method votes

src/org/antlr/codebuff/kNNClassifier.java:122–125  ·  view source on GitHub ↗
(int k, int[] unknown, List<Integer> Y, double distanceThreshold)

Source from the content-addressed store, hash-verified

120 }
121
122 public HashBag<Integer> votes(int k, int[] unknown, List<Integer> Y, double distanceThreshold) {
123 Neighbor[] kNN = kNN(unknown, k, distanceThreshold);
124 return getVotesBag(kNN, k, unknown, Y);
125 }
126
127 public HashBag<Integer> getVotesBag(Neighbor[] kNN, int k, int[] unknown, List<Integer> Y) {
128 HashBag<Integer> votes = new HashBag<>();

Callers

nothing calls this directly

Calls 2

kNNMethod · 0.95
getVotesBagMethod · 0.95

Tested by

no test coverage detected