Skip to content

Commit a501307

Browse files
committed
Type checks kmsr
1 parent ce8c4e2 commit a501307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kmsr/cpp/k_MSR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ vector<Cluster> clustering(const vector<Point> &points, int k, double epsilon,
181181
// Calculate the radii and u values based on 'rmax', 'k', and 'epsilon'.
182182
vector<vector<double>> radii =
183183
getRandomRadii(rmax, k, epsilon, numRadiiVectors, seed);
184-
vector<vector<int>> u = getU(points.size(), k, epsilon, numUVectors, seed);
184+
vector<vector<int>> u = getU(static_cast<int>(points.size()), k, epsilon, numUVectors, seed);
185185

186186
// Initialize the 'bestCluster' by making all points part of a cluster.
187187
bestCluster[0].setPoints(points);

0 commit comments

Comments
 (0)