|
@@ -98,7 +98,7 @@ void Plotter::plot1D(int paramnum, const float from, const float to, const float
|
|
|
while(tmpParams[paramnum][0] <= end)
|
|
|
{
|
|
|
// evaluate costfunction and write to plotfile
|
|
|
- plotfile << tmpParams[paramnum][0] << " " << m_pCostfunc->evaluate(tmpParams) << endl;
|
|
|
+ plotfile << tmpParams[paramnum][0] << " " << m_pCostfunc->evaluate(tmpParams) << std::endl;
|
|
|
|
|
|
// increment evaluation value
|
|
|
tmpParams[paramnum][0]+= stepwidth;
|
|
@@ -149,12 +149,12 @@ void Plotter::plot2D(int paramnum1, const float from1, const float to1, const fl
|
|
|
while(tmpParams[paramnum2][0] <= end2)
|
|
|
{
|
|
|
// evaluate costfunction and write to plotfile
|
|
|
- plotfile << tmpParams[paramnum1][0] << " " << tmpParams[paramnum2][0] << " " << m_pCostfunc->evaluate(tmpParams) << endl;
|
|
|
+ plotfile << tmpParams[paramnum1][0] << " " << tmpParams[paramnum2][0] << " " << m_pCostfunc->evaluate(tmpParams) << std::endl;
|
|
|
|
|
|
// increment evaluation value of parameter 2
|
|
|
tmpParams[paramnum2][0]+= stepwidth2;
|
|
|
}
|
|
|
- plotfile<<endl;
|
|
|
+ plotfile<<std::endl;
|
|
|
// reset inner loop
|
|
|
tmpParams[paramnum2][0]= start2;
|
|
|
|
|
@@ -192,10 +192,10 @@ void Plotter::plot3D(int paramnum1, const float from1, const float to1, const fl
|
|
|
|
|
|
// iterating over the first parameter
|
|
|
tmpParams[paramnum1][0]= start1;
|
|
|
- string filename(const_cast<char*>(path));
|
|
|
+ std::string filename(const_cast<char*>(path));
|
|
|
|
|
|
// cutting suffix ".txt", if there
|
|
|
- if(filename.find(".txt") != string::npos)
|
|
|
+ if(filename.find(".txt") != std::string::npos)
|
|
|
{
|
|
|
filename.erase(filename.find(".txt"),4);
|
|
|
}
|
|
@@ -205,7 +205,7 @@ void Plotter::plot3D(int paramnum1, const float from1, const float to1, const fl
|
|
|
// generate name of plotfile
|
|
|
char number[5];
|
|
|
sprintf(number,"%f",tmpParams[paramnum1][0]);
|
|
|
- string numfilename= filename + "_" + number + ".txt";
|
|
|
+ std::string numfilename= filename + "_" + number + ".txt";
|
|
|
|
|
|
// open plot file for writing
|
|
|
std::ofstream plotfile;
|
|
@@ -239,12 +239,12 @@ void Plotter::plot3D(int paramnum1, const float from1, const float to1, const fl
|
|
|
while(tmpParams[paramnum3][0] <= end3)
|
|
|
{
|
|
|
// evaluate costfunction and write to plotfile
|
|
|
- plotfile << tmpParams[paramnum2][0] << " " << tmpParams[paramnum3][0] << " " << m_pCostfunc->evaluate(tmpParams) << endl;
|
|
|
+ plotfile << tmpParams[paramnum2][0] << " " << tmpParams[paramnum3][0] << " " << m_pCostfunc->evaluate(tmpParams) << std::endl;
|
|
|
|
|
|
// increment evaluation value of parameter 3
|
|
|
tmpParams[paramnum3][0]+= stepwidth3;
|
|
|
}
|
|
|
- plotfile<<endl;
|
|
|
+ plotfile<<std::endl;
|
|
|
// reset inner loop
|
|
|
tmpParams[paramnum3][0]= start3;
|
|
|
|