Skip to content
Snippets Groups Projects
Commit d937e23e authored by Mark Woolrich's avatar Mark Woolrich
Browse files

*** empty log message ***

parent b8cc15db
No related branches found
No related tags found
No related merge requests found
......@@ -100,15 +100,15 @@ int main(int argc, char *argv[])
if(!globalopts.noest)
{
cerr << "Calculating residuals..." << endl;
cout << "Calculating residuals..." << endl;
for(int i = 1; i <= numTS; i++)
{
glimGls.setData(x.getSeries(i), parad.getDesignMatrix(), i);
residuals.getSeries(i) = glimGls.getResiduals();
}
cerr << "Completed" << endl;
cout << "Completed" << endl;
cerr << "Estimating residual autocorrelation..." << endl;
cout << "Estimating residual autocorrelation..." << endl;
if(globalopts.fitAutoRegressiveModel)
{
......@@ -148,9 +148,10 @@ int main(int argc, char *argv[])
}
}
cerr << "Completed" << endl;
cout << "Completed" << endl;
cerr << "Prewhitening and Computing PEs..." << endl;
cout << "Prewhitening and Computing PEs..." << endl;
cout << "Percentage done:" << endl;
int co = 1;
for(int i = 1; i <= numTS; i++)
......@@ -167,10 +168,11 @@ int main(int argc, char *argv[])
Matrix designmattw;
acEst.preWhiten(xprew, xw, i, designmattw);
if(co > 1000)
if(co > 100)
{
co = 1;
cerr << (float)i/(float)numTS << ",";
cout << 100.0*(float)i/(float)numTS << ",";
cout.flush();
}
else
co++;
......@@ -181,10 +183,11 @@ int main(int argc, char *argv[])
}
else
{
if(co > 1000)
if(co > 100)
{
co = 1;
cerr << (float)i/(float)numTS << ",";
cout << 100.0*(float)i/(float)numTS << ",";
cout.flush();
}
else
co++;
......
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