Changeset 2487


Ignore:
Timestamp:
Oct 19, 2012, 12:16:30 AM (7 years ago)
Author:
ksherdy
Message:

Added total measurements statistic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/C/parabix/cc_analyzer.cxx

    r2485 r2487  
    455455        double mean, std_dev;
    456456        unsigned long long min, max, sum;
    457         ostringstream oss_min, oss_max, oss_mean, oss_std_dev;
     457        ostringstream oss_min, oss_max, oss_mean, oss_total, oss_std_dev;
    458458
    459459        map<string, vector<unsigned long long > >::iterator ii;
     
    482482                }
    483483
     484          // total elements             
     485                oss_total << fixed << std::setprecision(cc_Precision) << sum;
     486                write_ln(string("Total "), oss_total.str());
     487
    484488                mean = (double)sum / (double)(ii->second).size();
    485489                oss_mean << fixed << std::setprecision(cc_Precision) << mean;
     
    501505                oss_min.str("");
    502506                oss_max.str("");
     507                oss_total.str("");
    503508                oss_mean.str("");
    504509                oss_std_dev.str("");
     
    511516        double mean, std_dev, mean_per_elem, std_dev_per_elem;
    512517        unsigned long long min, max, sum, elems;
    513         ostringstream oss_min, oss_max, oss_mean, oss_std_dev, oss_elems, oss_mean_per_elem, oss_std_dev_per_elem;
     518        ostringstream oss_min, oss_max, oss_mean, oss_total, oss_std_dev, oss_elems, oss_mean_per_elem, oss_std_dev_per_elem;
    514519
    515520        map<string, vector<pair <unsigned long long, unsigned long> > >::iterator ii;
     
    539544                }
    540545
     546          // total elements             
     547                oss_total << fixed << std::setprecision(cc_Precision) << sum;
     548                write_ln(string("Total "), oss_total.str());
     549               
    541550                mean = (double)sum / (double)(ii->second).size();
    542551                oss_mean << fixed << std::setprecision(cc_Precision) << mean;
     
    590599                oss_max.str("");
    591600                oss_mean.str("");
     601                oss_total.str("");
    592602                oss_std_dev.str("");
    593603                oss_elems.str("");
Note: See TracChangeset for help on using the changeset viewer.