ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
GETMath2.h
Go to the documentation of this file.
1 // =================================================
2 // GETMath Class
3 //
4 // Author:
5 // Genie Jhang ( geniejhang@majimak.com )
6 //
7 // Log:
8 // - 2013. 10. 24
9 // Start writing class
10 // - 2015. 11. 13
11 // Adopted to the new version
12 // =================================================
13 
14 #ifndef GETMAtH2
15 #define GETMAtH2
16 
17 #include <Rtypes.h>
18 
19 class TBuffer;
20 class TClass;
21 class TMemberInspector;
22 
29 class GETMath2 {
30 public:
32 
33  void Reset();
34 
35  void Add(Double_t value);
36  Double_t GetMean();
38  Double_t GetRMS();
39  Double_t GetRMS2();
40 
41  void Set(Int_t numValues, Double_t mean,
42  Double_t rms2);
43 
44 private:
45  Int_t fNumValues;
46  Double_t fMean;
47  Double_t fRms;
48 
49  ClassDef(GETMath2, 1)
50 };
51 
52 #endif
GETMath2::GetMean
Double_t GetMean()
Return the calculated mean value.
Definition: GETMath2.cxx:43
GETMath2::GetRMS
Double_t GetRMS()
Return the calculated RMS value.
Definition: GETMath2.cxx:47
GETMath2::Set
void Set(Int_t numValues, Double_t mean, Double_t rms2)
Definition: GETMath2.cxx:56
GETMath2
Definition: GETMath2.h:29
GETMath2::Reset
void Reset()
Reset all the values.
Definition: GETMath2.cxx:63
GETMath2::GetRMS2
Double_t GetRMS2()
Return the calculated RMS squared value.
Definition: GETMath2.cxx:51
GETMath2::Add
void Add(Double_t value)
Definition: GETMath2.cxx:27
GETMath2::GETMath2
GETMath2()
mean
double mean(const double *a, size_t m)
Definition: cluster.cxx:26