Skip to content

Commit

Permalink
add fixme comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Oct 2, 2023
1 parent 7a96ff3 commit 9f748b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/spatial_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,7 @@ EidosValue_SP SpatialMap::ExecuteMethod_rescale(EidosGlobalStringID p_method_id,
double old_range_width = values_max_ - values_min_;
double new_range_width = max - min;

// FIXME: TO BE PARALLELIZED
for (int64_t i = 0; i < values_size_; ++i)
values_[i] = ((values_[i] - values_min_) / old_range_width) * new_range_width + min;

Expand Down

0 comments on commit 9f748b6

Please sign in to comment.