diff options
Diffstat (limited to 'src/Persistence_representations')
-rw-r--r-- | src/Persistence_representations/include/gudhi/PSSK.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Persistence_representations/include/gudhi/PSSK.h b/src/Persistence_representations/include/gudhi/PSSK.h index 53628737..e2d4225e 100644 --- a/src/Persistence_representations/include/gudhi/PSSK.h +++ b/src/Persistence_representations/include/gudhi/PSSK.h @@ -121,8 +121,10 @@ void PSSK::construct(const std::vector<std::pair<double, double> >& intervals_, for (size_t pt_nr = 0; pt_nr != intervals_.size(); ++pt_nr) { // compute the value of intervals_[pt_nr] in the grid: - int x_grid = static_cast<int>((intervals_[pt_nr].first - this->min_) / (this->max_ - this->min_) * number_of_pixels); - int y_grid = static_cast<int>((intervals_[pt_nr].second - this->min_) / (this->max_ - this->min_) * number_of_pixels); + int x_grid = static_cast<int>((intervals_[pt_nr].first - this->min_) / + (this->max_ - this->min_) * number_of_pixels); + int y_grid = static_cast<int>((intervals_[pt_nr].second - this->min_) / + (this->max_ - this->min_) * number_of_pixels); if (dbg) { std::cerr << "point : " << intervals_[pt_nr].first << " , " << intervals_[pt_nr].second << std::endl; |