Skip to content

Commit

Permalink
Remove cast to double
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliabaldini committed Jun 6, 2024
1 parent 931b5b8 commit 662fd48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bico/clustering/bico.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ template<typename T> void Bico<T>::initializeNN()
}
else
{
bucket_radius[i] = (double) ceil(sqrt(getR(1)));
bucket_radius[i] = ceil(sqrt(getR(1)));
Size = (int) ceil((borders[i].second - borders[i].first) / (double) bucket_radius[i]);
if(Size < 0 || Size > maxBuckets)
{
Expand Down Expand Up @@ -771,7 +771,7 @@ template<typename T> Bico<T>& Bico<T>::operator<<(T const & element)
optEst = 16.0 * minDist;
//std::cout << "minDist = " << minDist << std::endl;
//std::cout << "optEst = " << minDist << std::endl;
double radius = (double) ceil(sqrt(getR(1)));
double radius = ceil(sqrt(getR(1)));
borders.resize(L);
for (size_t i = 0; i < L; i++)
{
Expand Down

0 comments on commit 662fd48

Please sign in to comment.