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

Method meanOf

output/java_guava/1.4.17/Stats.java:420–422  ·  view source on GitHub ↗

Returns the arithmetic mean of the values. The count must be non-zero. The definition of the mean is the same as Stats#mean. @param values a series of values, which will be converted to double values (this may cause

(Iterable<? extends Number> values)

Source from the content-addressed store, hash-verified

418
419
420 public static double meanOf(Iterable<? extends Number> values) {
421 return meanOf(values.iterator());
422 }
423
424 /**
425 * Returns the <a href="http://en.wikipedia.org/wiki/Arithmetic_mean">arithmetic mean</a> of the

Callers

nothing calls this directly

Calls 7

iteratorMethod · 0.65
nextMethod · 0.65
checkArgumentMethod · 0.45
hasNextMethod · 0.45
doubleValueMethod · 0.45
isFiniteMethod · 0.45

Tested by

no test coverage detected