CMS 3D CMS Logo

Accumulator.cc File Reference

#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)


Function Documentation

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 }


Generated on Tue Jun 9 17:51:33 2009 for CMSSW by  doxygen 1.5.4