MCPcopy Create free account
hub / github.com/Gecode/gecode / am

Function am

gecode/driver/script.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73 double
74 am(double t[], unsigned int n) {
75 if (n < 1)
76 return 0.0;
77 double s = 0;
78 for (unsigned int i=0; i<n; i++)
79 s += t[i];
80 return s / n;
81 }
82
83 double
84 dev(double t[], unsigned int n) {

Callers 2

devFunction · 0.85
runMetaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected