ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <GETMath2.h>
Public Member Functions | |
GETMath2 () | |
void | Reset () |
Reset all the values. More... | |
void | Add (Double_t value) |
Double_t | GetMean () |
Return the calculated mean value. More... | |
Double_t | GetRMS () |
Return the calculated RMS value. More... | |
Double_t | GetRMS2 () |
Return the calculated RMS squared value. More... | |
void | Set (Int_t numValues, Double_t mean, Double_t rms2) |
Basically, what this class does is the same as TH1D class in ROOT. The difference is that this class only provides the mean and RMS values. Nothing else!
Definition at line 29 of file GETMath2.h.
GETMath2::GETMath2 | ( | ) |
void GETMath2::Add | ( | Double_t | value | ) |
With the mean and RMS, calculated before, use the value to calculate new mean and RMS recursively.
This method uses the formulae below to calculate mean and RMS.
Definition at line 27 of file GETMath2.cxx.
Double_t GETMath2::GetMean | ( | ) |
Return the calculated mean value.
Definition at line 43 of file GETMath2.cxx.
Double_t GETMath2::GetRMS | ( | ) |
Return the calculated RMS value.
Definition at line 47 of file GETMath2.cxx.
Double_t GETMath2::GetRMS2 | ( | ) |
Return the calculated RMS squared value.
Definition at line 51 of file GETMath2.cxx.
void GETMath2::Reset | ( | ) |
Reset all the values.
Definition at line 63 of file GETMath2.cxx.
void GETMath2::Set | ( | Int_t | numValues, |
Double_t | mean, | ||
Double_t | rms2 | ||
) |
Definition at line 56 of file GETMath2.cxx.