![]() |
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) |
Private Attributes | |
T_Value | value_ |
T_Value | error_ |
Size | count_ |
T_Value | center_ |
|
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. |
|
Definition at line 137 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and 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(), count_, I_Bin::error(), error_, HTL_ERR, T_Value, I_Bin::value(), and value_. |
|
Reimplemented from I_Bin. Definition at line 61 of file Gravity_Bin_1D.h. References center_, and Index. Referenced by operator==(). |
|
Definition at line 126 of file Gravity_Bin_1D.h. References I_Bin::center(), center_, T_Value, I_Bin::value(), and value_. Referenced by add(), binomial_div(), div(), mul(), and sub(). |
|
Implements I_Bin. Definition at line 49 of file Gravity_Bin_1D.h. 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(), count_, I_Bin::error(), error_, HTL_ERR, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 46 of file Gravity_Bin_1D.h. Referenced by operator==(). |
|
|
|
Definition at line 117 of file Gravity_Bin_1D.h. References I_Bin::center(), center_, I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 221 of file Gravity_Bin_1D.h. |
|
Definition at line 154 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and 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 count_, error_, T_Value, and value_. Referenced by P_Histo1DVar::fill(), P_Histo1D::fill(), and put(). |
|
Implements I_Bin. Definition at line 75 of file Gravity_Bin_1D.h. |
|
Reimplemented from I_Bin. Definition at line 64 of file Gravity_Bin_1D.h. |
|
Implements I_Bin. Definition at line 58 of file Gravity_Bin_1D.h. |
|
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. |
|
Definition at line 145 of file Gravity_Bin_1D.h. References combine_centers(), I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 43 of file Gravity_Bin_1D.h. Referenced by operator==(). |
|
Definition at line 237 of file Gravity_Bin_1D.h. Referenced by center(), combine_centers(), Gravity_Bin_1D(), make(), put(), reset(), and set_center(). |
|
Definition at line 236 of file Gravity_Bin_1D.h. Referenced by add(), binomial_div(), count(), div(), Gravity_Bin_1D(), make(), mul(), put(), reset(), set_count(), and sub(). |
|
Definition at line 235 of file Gravity_Bin_1D.h. Referenced by add(), binomial_div(), div(), error(), Gravity_Bin_1D(), make(), mul(), put(), reset(), set_error(), and sub(). |
|
Definition at line 234 of file Gravity_Bin_1D.h. Referenced by add(), binomial_div(), combine_centers(), div(), Gravity_Bin_1D(), make(), mul(), put(), reset(), set_value(), and sub(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |