35 : fName(name), fN(0), fW(0.), fW2(0.), fM(0.), fM2(0.)
38 for (
Int_t i = 0; i <
n; i++) {
72 Warning(
"Fill",
"Sum of weights is zero - ignore current data point");
78 fM2 += w * rr * rr / (tW *
fW);
88 Printf(
" OBJ: TStatistic\t %s = %.5g +- %.4g \t RMS = %.5g \t N = %lld",
102 if (
fW == 0 || c->
fW == 0 || ((
fW + c->
fW) == 0) ) {
103 Error(
"Merge",
"Zero sum of weights - cannot merge data from %s",c->
GetName() );
106 double temp = (c->
fW)/(
fW) *
fM - c->
fM;
const char * GetName() const
Returns name of object.
Double_t GetMeanErr() const
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
#define templateClassImp(name)
TStatistic(const char *name="")
Statistical variable, defined by its mean and variance (RMS).
~TStatistic()
TStatistic destructor.
Collection abstract base class.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
void Fill(Double_t val, Double_t w=1.)
Mother of all ROOT objects.
Int_t Merge(TCollection *in)
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const