Skip to content

Commit

Permalink
BUG: Fix input argument indices in test
Browse files Browse the repository at this point in the history
Fix input argument indices when creating the corresponding variables.
  • Loading branch information
jhlegarreta authored and dzenanz committed Dec 28, 2022
1 parent aff7703 commit dcc8ea3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -41,8 +41,8 @@ itkKdTreeBasedKmeansEstimatorTest(int argc, char * argv[])

char * dataFileName = argv[1];
int dataSize = 2000;
int bucketSize = std::stoi(argv[3]);
double minStandardDeviation = std::stod(argv[2]);
int bucketSize = std::stoi(argv[2]);
double minStandardDeviation = std::stod(argv[3]);

itk::Array<double> trueMeans(4);
trueMeans[0] = 99.261;
Expand Down Expand Up @@ -160,7 +160,7 @@ itkKdTreeBasedKmeansEstimatorTest(int argc, char * argv[])
std::cout << " Mean displacement: " << std::endl;
std::cout << " " << displacement << std::endl << std::endl;

double tolearancePercent = std::stod(argv[3]);
double tolearancePercent = std::stod(argv[4]);

// if the displacement of the estimates are within tolearancePercent% of
// standardDeviation then we assume it is successful
Expand Down

0 comments on commit dcc8ea3

Please sign in to comment.