MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getAverage

Method getAverage

src/main/java/net/optifine/util/MathUtils.java:22–34  ·  view source on GitHub ↗
(int[] vals)

Source from the content-addressed store, hash-verified

20 }
21
22 public static int getAverage(int[] vals)
23 {
24 if (vals.length <= 0)
25 {
26 return 0;
27 }
28 else
29 {
30 int i = getSum(vals);
31 int j = i / vals.length;
32 return j;
33 }
34 }
35
36 public static int getSum(int[] vals)
37 {

Callers 2

isValidMethod · 0.95
isValidRandomMethod · 0.95

Calls 1

getSumMethod · 0.95

Tested by

no test coverage detected