Skip to content
Snippets Groups Projects
Commit c903e4f6 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

clang-format

parent 18ad9581
No related branches found
No related tags found
1 merge request!2022replace detector resolution example (#769)
Pipeline #115205 passed
...@@ -28,12 +28,13 @@ double DiffUtil::meanRelVecDiff(const std::vector<double>& dat, const std::vecto ...@@ -28,12 +28,13 @@ double DiffUtil::meanRelVecDiff(const std::vector<double>& dat, const std::vecto
ASSERT(dat.size() == ref.size()); ASSERT(dat.size() == ref.size());
double diff = 0; double diff = 0;
for (size_t i = 0; i < dat.size(); ++i) { for (size_t i = 0; i < dat.size(); ++i) {
if (ref[i] == 0 && dat[i] == 0) if (ref[i] == 0 && dat[i] == 0)
continue; continue;
if (ref[i] == 0 || dat[i] == 0) { if (ref[i] == 0 || dat[i] == 0) {
std::cerr << "check manually at i=" << i << ": ref=" << ref[i] << " vs dat=" << dat[i] << "\n"; std::cerr << "check manually at i=" << i << ": ref=" << ref[i] << " vs dat=" << dat[i]
continue; << "\n";
} continue;
}
diff += Numeric::relativeDifference(dat[i], ref[i]); diff += Numeric::relativeDifference(dat[i], ref[i]);
} }
diff /= dat.size(); diff /= dat.size();
......
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