Skip to content
Snippets Groups Projects
Commit 2cddfee8 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

WRG: use const variable

parent 8582353a
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@ int otbLibSVMRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -328,7 +328,7 @@ int otbNeuralNetworkRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 20000;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -392,7 +392,7 @@ int otbSVMRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -449,7 +449,7 @@ int otbDecisionTreeRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -511,7 +511,7 @@ int otbGradientBoostedTreeRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -572,7 +572,7 @@ int otbKNearestNeighborsRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......@@ -630,7 +630,7 @@ int otbRandomForestsRegressionTests(int itkNotUsed(argc),
param.vMin = -0.5;
param.vMax = 0.5;
param.count = 200;
param.eps = 0.1;
param.eps = epsilon;
std::cout << "Testing regression on a linear monovariate function" << std::endl;
LinearFunctionSampleGenerator<PrecisionType> lfsg(2.0, 1.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment