Skip to content

Commit

Permalink
Error heuristic else
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCE committed May 14, 2024
1 parent d63372c commit 11457ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nested/error-heuristic.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class error_heuristic_size {
auto operator()(const R& region) const {
auto max_err = region.error(0,error_metric);
if ((region.range().max(0)-region.range().min(0))<min_size) max_err=0;
max_err += size_weight*std::abs(region.range().max(0) - region.range().min(0));
else max_err += size_weight*std::abs(region.range().max(0) - region.range().min(0));
std::size_t max_dim = 0;
auto err = max_err;
for (std::size_t d = 1; d<R::dimensions; ++d) {
Expand Down

0 comments on commit 11457ec

Please sign in to comment.