Skip to content

Commit 662fd48

Browse files
committed
Remove cast to double
1 parent 931b5b8 commit 662fd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bico/clustering/bico.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ template<typename T> void Bico<T>::initializeNN()
613613
}
614614
else
615615
{
616-
bucket_radius[i] = (double) ceil(sqrt(getR(1)));
616+
bucket_radius[i] = ceil(sqrt(getR(1)));
617617
Size = (int) ceil((borders[i].second - borders[i].first) / (double) bucket_radius[i]);
618618
if(Size < 0 || Size > maxBuckets)
619619
{
@@ -771,7 +771,7 @@ template<typename T> Bico<T>& Bico<T>::operator<<(T const & element)
771771
optEst = 16.0 * minDist;
772772
//std::cout << "minDist = " << minDist << std::endl;
773773
//std::cout << "optEst = " << minDist << std::endl;
774-
double radius = (double) ceil(sqrt(getR(1)));
774+
double radius = ceil(sqrt(getR(1)));
775775
borders.resize(L);
776776
for (size_t i = 0; i < L; i++)
777777
{

0 commit comments

Comments
 (0)