#include <ProfileBin1D.h>
Inheritance diagram for Anaphe::AIDA_Histogram_native::ProfileBin1D:
The value of this bin then is : h/l
The error of the bin is . 0 if l==0 . sqrt(h/(l*l)) if s==0 . s/sqrt(l) otherwise
The spread of this bin is . 0 if l==0 . sqrt(h/l) if s==0 . s otherwise
Definition at line 30 of file ProfileBin1D.h.
Public Methods | |
ProfileBin1D () | |
Default constructor. | |
~ProfileBin1D () | |
Destructor. | |
bool | fill (double weight, double x, double y) |
Filling method. | |
bool | reset () |
Resets the contents of the bin. | |
bool | scale (double scaleFactor) |
Scales the contents of the bin by the given factor. | |
bool | increment (const ProfileBin1D &bin) |
Increments the contents from the data of another bin. | |
bool | increment (int extraEntries, double extraValue, double extraError, double extraSpread, double extraCentre) |
Increments the contents given entries, value, error and spread. | |
bool | set (int newEntries, double newValue, double newError, double newSpread, double newCentre) |
Sets the contents of the bin given all the parameters. | |
int | entries () const |
Returns the number of entries. | |
double | value () const |
Returns the value of the bin. | |
double | error () const |
Returns the error. | |
double | spread () const |
Returns the spread. | |
double | centreOfGravityX () const |
Returns the gravity point. | |
Protected Methods | |
double | sumOfWeights () const |
Returns the sum of weights. | |
Private Attributes | |
int | m_entries |
Number of entries. | |
double | m_sumOfWeights |
Internal running sums. | |
double | m_sumOfWeightTimesExtraCoordinate |
double | m_sumOfWeightTimesSquaredExtraCoordinate |
double | m_sumOfWeightTimesCoordinate |
|
Definition at line 5 of file ProfileBin1D.cpp. |
|
Definition at line 36 of file ProfileBin1D.h. |
|
Definition at line 92 of file ProfileBin1D.cpp. References m_sumOfWeights, and m_sumOfWeightTimesCoordinate. Referenced by Anaphe::AIDA_Histogram_native::AIDA_Profile1D::binMean(), Anaphe::AIDA_Histogram_native::AIDA_Profile2D::binMeanX(), Anaphe::AIDA_Histogram_native::AIDA_Profile2D::calculateStatistics(), and Anaphe::AIDA_Histogram_native::AIDA_Profile1D::calculateStatistics(). |
|
|
Definition at line 22 of file ProfileBin1D.cpp. References m_sumOfWeights, m_sumOfWeightTimesExtraCoordinate, and spread(). |
|
|
|
Definition at line 56 of file ProfileBin1D.cpp. |
|
Definition at line 44 of file ProfileBin1D.cpp. References m_entries, m_sumOfWeights, m_sumOfWeightTimesCoordinate, m_sumOfWeightTimesExtraCoordinate, and m_sumOfWeightTimesSquaredExtraCoordinate. Referenced by Anaphe::AIDA_Histogram_native::ProfileBin2D::increment(), and increment(). |
|
Reimplemented in Anaphe::AIDA_Histogram_native::ProfileBin2D. Referenced by Anaphe::AIDA_Histogram_native::ProfileBin2D::reset(). |
|
Reimplemented in Anaphe::AIDA_Histogram_native::ProfileBin2D. Referenced by Anaphe::AIDA_Histogram_native::ProfileBin2D::scale(). |
|
Definition at line 69 of file ProfileBin1D.cpp. References m_entries, m_sumOfWeights, m_sumOfWeightTimesCoordinate, m_sumOfWeightTimesExtraCoordinate, and m_sumOfWeightTimesSquaredExtraCoordinate. Referenced by increment(), and Anaphe::AIDA_Histogram_native::ProfileBin2D::set(). |
|
Definition at line 32 of file ProfileBin1D.cpp. References m_sumOfWeights, m_sumOfWeightTimesExtraCoordinate, and m_sumOfWeightTimesSquaredExtraCoordinate. Referenced by error(). |
|
Referenced by Anaphe::AIDA_Histogram_native::ProfileBin2D::centreOfGravityY(). |
|
Definition at line 15 of file ProfileBin1D.cpp. References m_sumOfWeights, and m_sumOfWeightTimesExtraCoordinate. Referenced by Anaphe::AIDA_Histogram_native::AIDA_Profile2D::binHeightX(), Anaphe::AIDA_Histogram_native::AIDA_Profile2D::binHeightY(), Anaphe::AIDA_Histogram_native::AIDA_Profile2D::calculateStatistics(), and Anaphe::AIDA_Histogram_native::AIDA_Profile1D::calculateStatistics(). |
|
Definition at line 74 of file ProfileBin1D.h. |
|
Definition at line 76 of file ProfileBin1D.h. Referenced by centreOfGravityX(), error(), increment(), set(), spread(), and value(). |
|
Reimplemented in Anaphe::AIDA_Histogram_native::ProfileBin2D. Definition at line 79 of file ProfileBin1D.h. Referenced by centreOfGravityX(), increment(), and set(). |
|
Definition at line 77 of file ProfileBin1D.h. Referenced by error(), increment(), set(), spread(), and value(). |
|
Definition at line 78 of file ProfileBin1D.h. |