#include <G4StatDouble.hh>
Definition at line 40 of file G4StatDouble.hh.
◆ G4StatDouble() [1/3]
G4StatDouble::G4StatDouble |
( |
| ) |
|
◆ G4StatDouble() [2/3]
G4StatDouble::G4StatDouble |
( |
G4double | x | ) |
|
Definition at line 35 of file G4StatDouble.cc.
void fill(G4double x, G4double weight=1.)
◆ ~G4StatDouble()
virtual G4StatDouble::~G4StatDouble |
( |
| ) |
|
|
virtualdefault |
◆ G4StatDouble() [3/3]
◆ add()
◆ fill()
◆ mean() [1/2]
◆ mean() [2/2]
Definition at line 76 of file G4StatDouble.cc.
77{
79
80
81
82 if(ext_sum_w > 0)
83 {
85 factor /= ext_sum_w;
86 }
87 return mean() * factor;
88}
◆ n()
G4int G4StatDouble::n |
( |
| ) |
const |
|
inline |
◆ operator+=() [1/2]
◆ operator+=() [2/2]
Definition at line 61 of file G4StatDouble.hh.
62 {
64 return *this;
65 }
void add(const G4StatDouble *)
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
void G4StatDouble::reset |
( |
| ) |
|
◆ rms() [1/3]
◆ rms() [2/3]
◆ rms() [3/3]
Definition at line 90 of file G4StatDouble.cc.
92{
94 if(nn > 1)
95 {
99
100
101
102
103
104
105
106
107
108
109 (xn / (xn - 1)) * ((ssum_wx2 / ssum_w) - (vmean * vmean));
110
111 tmp = std::max(tmp, 0.0);
112 vrms = std::sqrt(tmp);
113
114
115
116
117
118
119
120
121
122
123
124 }
126}
◆ scale()
void G4StatDouble::scale |
( |
G4double | value | ) |
|
◆ sum_w()
◆ sum_w2()
◆ sum_wx()
◆ sum_wx2()
G4double G4StatDouble::sum_wx2 |
( |
| ) |
const |
|
inline |
◆ m_n
G4int G4StatDouble::m_n = 0 |
|
protected |
◆ m_scale
◆ m_sum_w
◆ m_sum_w2
◆ m_sum_wx
◆ m_sum_wx2
The documentation for this class was generated from the following files: