Skip to content

Commit b22d7d1

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent daf6316 commit b22d7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/cluster/HierarchicalKMeans.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public KMeansResult cluster(FloatVectorValues vectors, int targetSize) throws IO
6767
// partition the space
6868
KMeansIntermediate kMeansIntermediate = clusterAndSplit(vectors, targetSize);
6969
if (kMeansIntermediate.centroids().length > 1 && kMeansIntermediate.centroids().length < vectors.size()) {
70-
int localSampleSize = Math.min(kMeansIntermediate.centroids().length * samplesPerCluster/2, vectors.size());
70+
int localSampleSize = Math.min(kMeansIntermediate.centroids().length * samplesPerCluster / 2, vectors.size());
7171
KMeansLocal kMeansLocal = new KMeansLocal(localSampleSize, maxIterations, clustersPerNeighborhood, DEFAULT_SOAR_LAMBDA);
7272
kMeansLocal.cluster(vectors, kMeansIntermediate, true);
7373
}

0 commit comments

Comments
 (0)