Skip to content

Commit

Permalink
Whitespace.
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed Jun 18, 2024
1 parent 17944f0 commit 187233c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cmd/gz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,20 +395,18 @@ extern "C" void cmdTopicFrequency(const char *_topic)
intervalV.push_back(static_cast<float>((timeV[i+1]
- timeV[i])) / 1e+9);
}

auto [min, max] = std::minmax_element(intervalV.begin(),
intervalV.end());

mean = std::accumulate(std::begin(intervalV),
std::end(intervalV), 0.0) / window;

for (auto interval : intervalV)
{
dev += pow(interval - mean, 2);
}
stdDev = sqrt(dev / window);
std::cout << "\n" << std::endl;
for(int i = 0; i < window; ++i) {
for(int i = 0; i < window; ++i)
{
std::cout << "interval [" << i << "]: "
<< intervalV[i] << "s" << std::endl;
}
Expand Down

0 comments on commit 187233c

Please sign in to comment.