![]() |
Reference Documentation |
#include <Float_Weighted_Bin.h>
Inheritance diagram for Float_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 26 of file Float_Weighted_Bin.h.
Public Types | |
typedef Float_Weighted_Bin | Like_Current |
typedef I_Bin | Like_Parent |
Public Methods | |
H_IID_IMPLEMENT (Float_Weighted_Bin) | |
Very simple RTTI feature. | |
Float_Weighted_Bin () | |
Constructor. | |
~Float_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. | |
Private Attributes | |
T_Value | value_ |
T_Value | error_ |
Size | count_ |
|
Reimplemented from I_Bin. Definition at line 31 of file Float_Weighted_Bin.h. |
|
Definition at line 32 of file Float_Weighted_Bin.h. |
|
Definition at line 35 of file Float_Weighted_Bin.h. |
|
Definition at line 37 of file Float_Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 169 of file Float_Weighted_Bin.h. |
|
Definition at line 93 of file Float_Weighted_Bin.h. References 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 146 of file Float_Weighted_Bin.h. References 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 Float_Weighted_Bin.h. Referenced by operator==(). |
|
Implements I_Bin. Definition at line 175 of file Float_Weighted_Bin.h. |
|
If other.error()==0 then new error is 0. Definition at line 121 of file Float_Weighted_Bin.h. References I_Bin::count(), count_, I_Bin::error(), error_, HTL_ERR, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 43 of file Float_Weighted_Bin.h. Referenced by operator==(). |
|
|
|
Definition at line 85 of file Float_Weighted_Bin.h. References I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 173 of file Float_Weighted_Bin.h. |
|
Definition at line 109 of file Float_Weighted_Bin.h. References I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and value_. |
|
Definition at line 75 of file Float_Weighted_Bin.h. |
|
Definition at line 64 of file Float_Weighted_Bin.h. References count_, error_, T_Value, and value_. Referenced by P_Histo2DF::fill(). |
|
Implements I_Bin. Definition at line 58 of file Float_Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 55 of file Float_Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 52 of file Float_Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 49 of file Float_Weighted_Bin.h. |
|
Implements I_Bin. Definition at line 171 of file Float_Weighted_Bin.h. |
|
Definition at line 101 of file Float_Weighted_Bin.h. References I_Bin::count(), count_, I_Bin::error(), error_, T_Value, I_Bin::value(), and value_. |
|
Implements I_Bin. Definition at line 40 of file Float_Weighted_Bin.h. Referenced by operator==(). |
|
Definition at line 188 of file Float_Weighted_Bin.h. Referenced by add(), binomial_div(), count(), div(), Float_Weighted_Bin(), make(), mul(), put(), reset(), set_count(), and sub(). |
|
Definition at line 187 of file Float_Weighted_Bin.h. Referenced by add(), binomial_div(), div(), error(), Float_Weighted_Bin(), make(), mul(), put(), reset(), set_error(), and sub(). |
|
Definition at line 186 of file Float_Weighted_Bin.h. Referenced by add(), binomial_div(), div(), Float_Weighted_Bin(), make(), mul(), put(), reset(), set_value(), and sub(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |