mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
fix uninitialized variable
This commit is contained in:
parent
9a4b4d388a
commit
b95fd4d757
@ -422,7 +422,7 @@ void QgsKMeansClusteringAlgorithm::initClustersPlusPlus( std::vector<Feature> &p
|
||||
// store distances between previous and new candidate center, error and best candidate index
|
||||
double currentError = 0;
|
||||
double lowestError = std::numeric_limits<double>::max();
|
||||
size_t bestCandidateIndex;
|
||||
unsigned int bestCandidateIndex = 0;
|
||||
for ( unsigned int j = 0; j < numCandidateCenters; j++ )
|
||||
{
|
||||
for ( size_t z = 0; z < n; z++ )
|
||||
|
Loading…
x
Reference in New Issue
Block a user