#include "CommonTools/Statistics/interface/Accumulator.h"
#include <cmath>
#include <ostream>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const Accumulator &stat) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const Accumulator & | stat | |||
) |
Definition at line 41 of file Accumulator.cc.
References Accumulator::mean(), Accumulator::nEntries(), and Accumulator::sigma().
00041 { 00042 os << "entries: " << stat.nEntries(); 00043 if(stat.nEntries() > 0) { 00044 os << " Mean: " << stat.mean(); 00045 } 00046 if(stat.nEntries() > 1) { 00047 os << " Sigma: " << stat.sigma(); 00048 } 00049 return os; 00050 }