Skip to content
Snippets Groups Projects
Commit 266e1f10 authored by Jakobsen, Mads Bregenholt's avatar Jakobsen, Mads Bregenholt
Browse files

removed std cout qith debug

parent 8003b97f
No related branches found
No related tags found
No related merge requests found
......@@ -19,14 +19,8 @@ struct running_mean
void add(double value)
{
std::cout << "adding value " << value << "\n";
std::cout << "current: count " << count << " and mean " << mean << "\n";
count++;
mean += (value - mean) / static_cast<double>(count);
std::cout << "NEW: count " << count << " and mean " << mean << "\n";
}
};
......@@ -46,7 +40,6 @@ void running_stats(
// run through data
for (std::uint32_t idx = 0; idx < data_size; idx++)
{
std::cout << "handling idx " << idx << "\n";
const double value = static_cast<double>(data[idx]);
// we do not process non finite values
......@@ -60,7 +53,6 @@ void running_stats(
// add to mean
reinterpret_cast<running_mean*>(running_mean_mem+2*idx)->add(value);
}
*nanmean_of_data = nan_mean.mean;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment