Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NatLabRockies/OpenStudio
/ mean
Function
mean
src/utilities/data/Vector.cpp:312–319 ·
view source on GitHub ↗
mean
Source
from the content-addressed store, hash-verified
310
311
/// mean
312
double mean(const Vector& vector) {
313
double avg = 0;
314
size_t N = vector.size();
315
if (N > 0) {
316
avg = sum(vector) / N;
317
}
318
return avg;
319
}
320
321
/// variance
322
double variance(const Vector& vector) {
Callers
1
variance
Function · 0.70
Calls
2
sum
Function · 0.70
size
Method · 0.45
Tested by
no test coverage detected