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

Method mean

src/org/antlr/codebuff/misc/BuffUtils.java:140–146  ·  view source on GitHub ↗
(Collection<Double> data)

Source from the content-addressed store, hash-verified

138 }
139
140 public static double mean(Collection<Double> data) {
141 double sum = 0.0;
142 for (Double d : data) {
143 sum += d;
144 }
145 return sum / data.size();
146 }
147}

Callers 2

computeConsistencyMethod · 0.45
examineCorpusMethod · 0.45

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected