![]() |
Reference Documentation |
#include <Weighted_Bin.h>
Inheritance diagram for Weighted_Bin:
The value of this bin is: value = SUM[ weight ] The error of this bin is: error = sqrt( SUM[ weight*weight ] ) By default the gravity center of all the data points in this bin is the middle of the bin.
Definition at line 24 of file Weighted_Bin.h.
Public Types | |
typedef Weighted_Bin | Like_Current |
typedef I_Bin | Like_Parent |
Public Methods | |
H_IID_IMPLEMENT (Weighted_Bin) | |
Very simple RTTI feature. | |
Weighted_Bin () | |
Constructor. | |
~Weighted_Bin () | |
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. = Number of entries. | |
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. | |
void | reset () |
Reset bin contents to 0. | |
void | put (T_Value a_weight) |
Put data point with weight a_weight. | |
int | operator== (const Like_Current &other) const |
Comparison operator. | |
void | make (const Like_Parent &other) |
Override bin content. | |
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. |
|
Reimplemented from I_Bin. Definition at line 29 of file Weighted_Bin.h. |
|
Definition at line 30 of file Weighted_Bin.h. |
|
Definition at line 34 of file Weighted_Bin.h. |
|
Definition at line 36 of file Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 156 of file Weighted_Bin.h. References T_Value. |
|
Definition at line 85 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
If other.error()==0 then new error is 0. Definition at line 134 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), HTL_ERR, T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 46 of file Weighted_Bin.h. References Size. Referenced by operator==(). |
|
Implements I_Bin. Definition at line 162 of file Weighted_Bin.h. |
|
If other.error()==0 then new error is 0. Definition at line 110 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), HTL_ERR, T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 43 of file Weighted_Bin.h. References Index. Referenced by operator==(). |
|
|
|
Definition at line 79 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 160 of file Weighted_Bin.h. References T_Value. |
|
Definition at line 99 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
Definition at line 70 of file Weighted_Bin.h. |
|
Definition at line 62 of file Weighted_Bin.h. References T_Value. Referenced by T_Histo3DVar::fill(), T_Histo3D::fill(), T_Histo2DVar::fill(), T_Histo2D::fill(), T_Histo1DVar_FTS::fill(), and T_Histo1D_FTS::fill(). |
|
Implements I_Bin. Definition at line 58 of file Weighted_Bin.h. References T_Value. |
|
Implements I_Bin. Definition at line 55 of file Weighted_Bin.h. References Size. |
|
Implements I_Bin. Definition at line 52 of file Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 49 of file Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 158 of file Weighted_Bin.h. References T_Value. |
|
Definition at line 92 of file Weighted_Bin.h. References I_Bin::count(), I_Bin::error(), T_Value, and I_Bin::value(). |
|
Implements I_Bin. Definition at line 40 of file Weighted_Bin.h. Referenced by operator==(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |