![]() |
Reference Documentation |
#include <Gravity_Bin_1D.h>
Inheritance diagram for Gravity_Bin_1D:
center = (old center * old value + value * point)/(old value + value)
The value of this bin is:
value = SUM[ weight ]
The error of this bin is:
error = sqrt( SUM[ weight*weight ] )
Definition at line 29 of file Gravity_Bin_1D.h.
Public Types | |
typedef Gravity_Bin_1D | Like_Current |
typedef I_Bin | Like_Parent |
Public Methods | |
H_IID_IMPLEMENT (Gravity_Bin_1D) | |
Very simple RTTI feature. | |
Gravity_Bin_1D () | |
Constructor. | |
~Gravity_Bin_1D () | |
Destructor. | |
double | value (Index=0) const |
Value associated with this bin. | |
double | error (Index=0) const |
Error associated with this bin. | |
Size | count () const |
Count associated with this bin. | |
void | set_value (double other, Index=0) |
Change/set the value of the bin to other. | |
void | set_error (double other, Index=0) |
Change/set the error of the bin to other. | |
void | set_count (Size other) |
Change/set the count of the bin to other. | |
double | center (Index=0) const |
Gravity center on axis i associated with this bin. | |
void | set_center (double other) |
Change/set the center of the bin to other. | |
int | offset (Index=0) const |
Relative or absolute position for the center. | |
void | reset () |
Reset bin contents and center to 0. | |
void | put (T_Value a_weight, T_Value a_point) |
Put data point a_point with weight a_weight. | |
int | operator== (const Like_Current &other) const |
Comparison operator. | |
void | make (const Like_Parent &other) |
Override bin content. | |
void | combine_centers (const Like_Parent &other) |
Combine centers of current bin with another Gravity Bin. | |
void | add (const Like_Parent &other) |
Add other bin to current one. | |
void | sub (const Like_Parent &other) |
Subtract other bin from current one. | |
void | mul (const Like_Parent &other) |
Multiply current bin by other one. | |
void | div (const Like_Parent &other) |
Divide current bin by other one If other.value()==0 then new value is 0. | |
void | binomial_div (const Like_Parent &other) |
Divide binomially current bin by other one If other.value()==0 then new value is 0. | |
void | add (double x) |
Add scalar to current bin. | |
void | sub (double x) |
Subtract scalar from current bin. | |
void | mul (double x) |
Multiply current bin by scalar. | |
void | div (double x) |
Divide current bin by scalar. | |
Protected Methods | |
void | put (T_Value a_weight) |
|
Reimplemented from I_Bin. Definition at line 34 of file Gravity_Bin_1D.h. |
|
Definition at line 35 of file Gravity_Bin_1D.h. |
|
Definition at line 38 of file Gravity_Bin_1D.h. |
|
Definition at line 40 of file Gravity_Bin_1D.h. |
|
Implements I_Bin. Definition at line 217 of file Gravity_Bin_1D.h. References T_Value. |
|
Definition at line 137 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
If other.error()==0 then new error is 0. Definition at line 193 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), I_Bin::error(), HTL_ERR, T_Value, and I_Bin::value(). |
|
Reimplemented from I_Bin. Definition at line 61 of file Gravity_Bin_1D.h. References Index. Referenced by operator==(). |
|
Definition at line 126 of file Gravity_Bin_1D.h. References I_Bin::center(), T_Value, and I_Bin::value(). Referenced by add(), binomial_div(), div(), mul(), and sub(). |
|
Implements I_Bin. Definition at line 49 of file Gravity_Bin_1D.h. References Size. Referenced by operator==(). |
|
Implements I_Bin. Definition at line 223 of file Gravity_Bin_1D.h. |
|
If other.error()==0 then new error is 0. Definition at line 167 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), I_Bin::error(), HTL_ERR, T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 46 of file Gravity_Bin_1D.h. References Index. Referenced by operator==(). |
|
|
|
Definition at line 117 of file Gravity_Bin_1D.h. References I_Bin::center(), I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 221 of file Gravity_Bin_1D.h. References T_Value. |
|
Definition at line 154 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
\item Index = 1 means relative. \item Index = 0 means absolute. Reimplemented from I_Bin. Definition at line 72 of file Gravity_Bin_1D.h. References Index. |
|
Definition at line 106 of file Gravity_Bin_1D.h. References center(), count(), error(), T_Value, and value(). |
|
Definition at line 88 of file Gravity_Bin_1D.h. |
|
Definition at line 79 of file Gravity_Bin_1D.h. References T_Value. Referenced by T_Histo1DVar::fill(), T_Histo1D::fill(), and put(). |
|
Implements I_Bin. Definition at line 75 of file Gravity_Bin_1D.h. References T_Value. |
|
Reimplemented from I_Bin. Definition at line 64 of file Gravity_Bin_1D.h. References T_Value. |
|
Implements I_Bin. Definition at line 58 of file Gravity_Bin_1D.h. References Size. |
|
Implements I_Bin. Definition at line 55 of file Gravity_Bin_1D.h. |
|
Implements I_Bin. Definition at line 52 of file Gravity_Bin_1D.h. |
|
Implements I_Bin. Definition at line 219 of file Gravity_Bin_1D.h. References T_Value. |
|
Definition at line 145 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 43 of file Gravity_Bin_1D.h. Referenced by operator==(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |