diff options
Diffstat (limited to 'src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h')
-rw-r--r-- | src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h b/src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h index 25f8cb47..7c5b2fdc 100644 --- a/src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h +++ b/src/Persistence_representations/include/gudhi/Persistence_heat_maps_exact.h @@ -92,7 +92,7 @@ class Persistence_heat_maps_exact { */ std::vector<std::vector<double> > vectorize() const { std::vector<std::vector<double> > im; for(int i = 0; i < res_y; i++) im.emplace_back(); - double step_x = (max_x - min_x)/res_x; double step_y = (max_y - min_y)/res_y; + double step_x = (max_x - min_x)/(res_x - 1); double step_y = (max_y - min_y)/(res_y - 1); int num_pts = diagram.size(); |