Commit d5df2180 authored by stefanwessel's avatar stefanwessel
Browse files

git-svn-id: https://svn.rwth-aachen.de/repos/sw440870_load_leveller/trunk@52 36cca2a8-63f0-4188-8a56-663e3b0d1cf3
parent d91f0b63
...@@ -139,7 +139,11 @@ void observable :: get_statistics(ostream& os) { ...@@ -139,7 +139,11 @@ void observable :: get_statistics(ostream& os) {
os<<"\n"; os<<"\n";
os << "Bins = " << bins() << "\n"; os << "Bins = " << bins() << "\n";
os << "BinLength = " << bin_length() << "\n"; os << "BinLength = " << bin_length() << "\n";
os.precision((int)(fabs((log(error_v[error_v.size()-1][j])/log(10.))))+3); //double ndigm=log(fabs(mean_v[0][j])) / log(10.);
//double ndige=log(fabs(error_v[error_v.size()-1][j])) / log(10.);
//int diffdig=(int)(ndigm-ndige);
//os.precision(abs(diffdig)+3);
//os.precision((int)(fabs((log(error_v[error_v.size()-1][j])/log(10.))))+3);
os << "Mean = " << mean_v[0][j]<<"\n"; os << "Mean = " << mean_v[0][j]<<"\n";
os.precision(3); os.precision(3);
os << "Error = " << error_v[error_v.size()-1][j] <<"\n"; os << "Error = " << error_v[error_v.size()-1][j] <<"\n";
...@@ -150,7 +154,7 @@ void observable :: get_statistics(ostream& os) { ...@@ -150,7 +154,7 @@ void observable :: get_statistics(ostream& os) {
for (uint i=0;i<error_v.size();++i) { for (uint i=0;i<error_v.size();++i) {
os << " ReBinLength = "<< length os << " ReBinLength = "<< length
<< " Bins = " << n; << " Bins = " << n;
os.precision((int)(fabs((log(error_v[i][j])/log(10.))))+3); //os.precision((int)(fabs((log(error_v[i][j])/log(10.))))+3);
os << " Mean = " << mean_v[i][j]; os << " Mean = " << mean_v[i][j];
os.precision(3); os.precision(3);
os << " Error = "<< error_v[i][j] os << " Error = "<< error_v[i][j]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment