Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TStatistic Class Reference

Statistical variable, defined by its mean and variance (RMS).

Named, streamable, storable and mergeable.

Definition at line 35 of file TStatistic.h.

Public Member Functions

 TStatistic (const char *name="")
 
 TStatistic (const char *name, Int_t n, const Double_t *val, const Double_t *w=0)
 Constructor from a vector of values. More...
 
 ~TStatistic ()
 TStatistic destructor. More...
 
void Fill (Double_t val, Double_t w=1.)
 
Double_t GetM2 () const
 
Double_t GetMean () const
 
Double_t GetMeanErr () const
 
Long64_t GetN () const
 
const char * GetName () const
 
Long64_t GetNeff () const
 
Double_t GetRMS () const
 
Double_t GetVar () const
 
Double_t GetW () const
 
Double_t GetW2 () const
 
ULong_t Hash () const
 
void ls (Option_t *opt="") const
 
Int_t Merge (TCollection *in)
 
void Print (Option_t *="") const
 

Private Attributes

Double_t fM
 
Double_t fM2
 
Long64_t fN
 
TString fName
 
Double_t fW
 
Double_t fW2
 

#include <TStatistic.h>

Inheritance diagram for TStatistic:
[legend]

Constructor & Destructor Documentation

◆ TStatistic() [1/2]

TStatistic::TStatistic ( const char *  name = "")
inline

Definition at line 47 of file TStatistic.h.

◆ TStatistic() [2/2]

TStatistic::TStatistic ( const char *  name,
Int_t  n,
const Double_t *  val,
const Double_t *  w = 0 
)

Constructor from a vector of values.

Definition at line 34 of file TStatistic.cxx.

◆ ~TStatistic()

TStatistic::~TStatistic ( )

TStatistic destructor.

Definition at line 51 of file TStatistic.cxx.

Member Function Documentation

◆ Fill()

void TStatistic::Fill ( Double_t  val,
Double_t  w = 1. 
)

Definition at line 57 of file TStatistic.cxx.

◆ GetM2()

Double_t TStatistic::GetM2 ( ) const
inline

Definition at line 57 of file TStatistic.h.

◆ GetMean()

Double_t TStatistic::GetMean ( ) const
inline

Definition at line 58 of file TStatistic.h.

◆ GetMeanErr()

Double_t TStatistic::GetMeanErr ( ) const
inline

Definition at line 59 of file TStatistic.h.

◆ GetN()

Long64_t TStatistic::GetN ( ) const
inline

Definition at line 55 of file TStatistic.h.

◆ GetName()

const char* TStatistic::GetName ( ) const
inline

Definition at line 52 of file TStatistic.h.

◆ GetNeff()

Long64_t TStatistic::GetNeff ( ) const
inline

Definition at line 56 of file TStatistic.h.

◆ GetRMS()

Double_t TStatistic::GetRMS ( ) const
inline

Definition at line 60 of file TStatistic.h.

◆ GetVar()

Double_t TStatistic::GetVar ( ) const
inline

Definition at line 61 of file TStatistic.h.

◆ GetW()

Double_t TStatistic::GetW ( ) const
inline

Definition at line 62 of file TStatistic.h.

◆ GetW2()

Double_t TStatistic::GetW2 ( ) const
inline

Definition at line 63 of file TStatistic.h.

◆ Hash()

ULong_t TStatistic::Hash ( ) const
inline

Definition at line 53 of file TStatistic.h.

◆ ls()

void TStatistic::ls ( Option_t *  opt = "") const
inline

Definition at line 73 of file TStatistic.h.

◆ Merge()

Int_t TStatistic::Merge ( TCollection *  in)

Definition at line 94 of file TStatistic.cxx.

◆ Print()

void TStatistic::Print ( Option_t *  = "") const

Definition at line 85 of file TStatistic.cxx.

Member Data Documentation

◆ fM

Double_t TStatistic::fM
private

Definition at line 42 of file TStatistic.h.

◆ fM2

Double_t TStatistic::fM2
private

Definition at line 43 of file TStatistic.h.

◆ fN

Long64_t TStatistic::fN
private

Definition at line 39 of file TStatistic.h.

◆ fName

TString TStatistic::fName
private

Definition at line 38 of file TStatistic.h.

◆ fW

Double_t TStatistic::fW
private

Definition at line 40 of file TStatistic.h.

◆ fW2

Double_t TStatistic::fW2
private

Definition at line 41 of file TStatistic.h.

Libraries for TStatistic:
[legend]

The documentation for this class was generated from the following files: