MCPcopy Create free account
hub / github.com/Aghajari/MathParser / avg

Method avg

MathParser/src/com/aghajari/math/Functions.java:159–161  ·  view source on GitHub ↗
(Double... a)

Source from the content-addressed store, hash-verified

157 }
158
159 public static double avg(Double... a) {
160 return sum(a) / a.length;
161 }
162
163 public static double sigma(MathParser parser, String variableName, String exp, double from, double to) throws MathParserException {
164 return sigma(parser, variableName, exp, from, to, 1.0);

Callers 1

averageMethod · 0.95

Calls 1

sumMethod · 0.95

Tested by

no test coverage detected