push for merge
This commit is contained in:
@@ -294,13 +294,17 @@ public:
|
||||
|
||||
pathEst.push_back(curEst);
|
||||
const float err = diff.length();
|
||||
errorsNorm.push_back(err);
|
||||
|
||||
|
||||
|
||||
// count number of transitions
|
||||
++cnt;
|
||||
|
||||
|
||||
if (cnt > 35) {
|
||||
statsFiltering.add(err);
|
||||
errorsNorm.push_back(err);
|
||||
std::cout << "Filtering: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
}
|
||||
|
||||
if(cnt > skip){
|
||||
//save the current estimation for later smoothing.
|
||||
@@ -335,10 +339,7 @@ public:
|
||||
|
||||
|
||||
// skip the first 35 scans due to uniform distribution start
|
||||
// if (cnt > 35) {
|
||||
statsFiltering.add(err);
|
||||
std::cout << "Filtering: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
//}
|
||||
|
||||
|
||||
const float errSmoothed = diffSmoothed.length();
|
||||
statsSmoothing.add(errSmoothed);
|
||||
@@ -489,7 +490,7 @@ public:
|
||||
std::ofstream oErrPlot("/tmp/plot_err_" + runName + ".gp");
|
||||
oErrPlot << "plot \\\n";
|
||||
oErrPlot << "'err_norm_" << runName << ".dat' with lines, \\\n";
|
||||
oErrPlot << "'err_smooth_" << runName << ".dat' using (($$0)+" << skip << "):1 with lines";
|
||||
oErrPlot << "'err_smooth_" << runName << ".dat' with lines";
|
||||
oErrPlot.close();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user