Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Anaphe::AIDA_Histogram_native::GravityBin1D Class Reference

#include <GravityBin1D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::GravityBin1D:

Inheritance graph
[legend]
List of all members.

Public Methods

 GravityBin1D ()
 Constructor.

 ~GravityBin1D ()
 Destructor.

bool fill (double weight, double coord)
bool reset ()
 Reset method.

bool scale (double factor)
 Scale method.

bool increment (const GravityBin1D &otherBin)
 Increment methods.

bool increment (int extraEntries, double extraHeight, double extraError, double extraCentre)
bool set (int entriesNew, double heightNew, double errorNew, double centreNew)
 Set method.

int entries () const
 Returns the number of entries.

double height () const
 Returns the bin height.

double error () const
 Returns the bin error.

double errorSquared () const
 Returns the bin error squared.

double centreOfGravityX () const
 Returns the gravity point.


Private Attributes

int m_entries
double m_sumOfWeights
double m_sumOfWeightTimesCoord
double m_sumOfSquaredWeights

Constructor & Destructor Documentation

Anaphe::AIDA_Histogram_native::GravityBin1D::GravityBin1D  
 

Definition at line 4 of file GravityBin1D.cpp.

Anaphe::AIDA_Histogram_native::GravityBin1D::~GravityBin1D   [inline]
 

Definition at line 16 of file GravityBin1D.h.


Member Function Documentation

double Anaphe::AIDA_Histogram_native::GravityBin1D::centreOfGravityX   const
 

Definition at line 72 of file GravityBin1D.cpp.

References m_sumOfWeights, and m_sumOfWeightTimesCoord.

Referenced by Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binMean(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binMeanX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binMeanX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::calculateStatistics(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::calculateStatistics(), and Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::calculateStatistics().

int Anaphe::AIDA_Histogram_native::GravityBin1D::entries   const
 

Referenced by Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binEntriesX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binEntriesX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binEntriesY(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binEntriesY(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binEntriesZ(), Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binMean(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::calculateStatistics(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::calculateStatistics(), and Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::calculateStatistics().

double Anaphe::AIDA_Histogram_native::GravityBin1D::error   const
 

Definition at line 65 of file GravityBin1D.cpp.

References m_sumOfSquaredWeights.

double Anaphe::AIDA_Histogram_native::GravityBin1D::errorSquared   const
 

Referenced by Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::calculateStatistics(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::calculateStatistics(), and Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::calculateStatistics().

bool Anaphe::AIDA_Histogram_native::GravityBin1D::fill double    weight,
double    coord
 

Main fill method. The weight of the entry and the x coordinate

double Anaphe::AIDA_Histogram_native::GravityBin1D::height   const
 

Referenced by Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binHeightX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binHeightX(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binHeightY(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binHeightY(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::binHeightZ(), Anaphe::AIDA_Histogram_native::AIDA_Histogram3D::calculateStatistics(), Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::calculateStatistics(), Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::calculateStatistics(), Anaphe::AIDA_Histogram_native::GravityBin2D::centreOfGravityY(), and Anaphe::AIDA_Histogram_native::GravityBin3D::centreOfGravityZ().

bool Anaphe::AIDA_Histogram_native::GravityBin1D::increment int    extraEntries,
double    extraHeight,
double    extraError,
double    extraCentre
 

Definition at line 39 of file GravityBin1D.cpp.

References m_entries, m_sumOfSquaredWeights, m_sumOfWeights, and m_sumOfWeightTimesCoord.

bool Anaphe::AIDA_Histogram_native::GravityBin1D::increment const GravityBin1D &    otherBin
 

Definition at line 29 of file GravityBin1D.cpp.

References m_entries, m_sumOfSquaredWeights, m_sumOfWeights, and m_sumOfWeightTimesCoord.

Referenced by Anaphe::AIDA_Histogram_native::GravityBin2D::increment().

bool Anaphe::AIDA_Histogram_native::GravityBin1D::reset  
 

Reimplemented in Anaphe::AIDA_Histogram_native::GravityBin2D, and Anaphe::AIDA_Histogram_native::GravityBin3D.

Definition at line 13 of file GravityBin1D.cpp.

References m_entries, m_sumOfSquaredWeights, m_sumOfWeights, and m_sumOfWeightTimesCoord.

Referenced by Anaphe::AIDA_Histogram_native::GravityBin2D::reset().

bool Anaphe::AIDA_Histogram_native::GravityBin1D::scale double    factor
 

Reimplemented in Anaphe::AIDA_Histogram_native::GravityBin2D, and Anaphe::AIDA_Histogram_native::GravityBin3D.

Definition at line 20 of file GravityBin1D.cpp.

References m_sumOfSquaredWeights, m_sumOfWeights, and m_sumOfWeightTimesCoord.

Referenced by Anaphe::AIDA_Histogram_native::GravityBin2D::scale().

bool Anaphe::AIDA_Histogram_native::GravityBin1D::set int    entriesNew,
double    heightNew,
double    errorNew,
double    centreNew
 

Definition at line 52 of file GravityBin1D.cpp.

References m_entries, m_sumOfSquaredWeights, m_sumOfWeights, and m_sumOfWeightTimesCoord.

Referenced by Anaphe::AIDA_Histogram_native::GravityBin2D::set().


Member Data Documentation

int Anaphe::AIDA_Histogram_native::GravityBin1D::m_entries [private]
 

Definition at line 49 of file GravityBin1D.h.

Referenced by increment(), reset(), and set().

double Anaphe::AIDA_Histogram_native::GravityBin1D::m_sumOfSquaredWeights [private]
 

Definition at line 52 of file GravityBin1D.h.

Referenced by error(), increment(), reset(), scale(), and set().

double Anaphe::AIDA_Histogram_native::GravityBin1D::m_sumOfWeights [private]
 

Definition at line 50 of file GravityBin1D.h.

Referenced by centreOfGravityX(), increment(), reset(), scale(), and set().

double Anaphe::AIDA_Histogram_native::GravityBin1D::m_sumOfWeightTimesCoord [private]
 

Reimplemented in Anaphe::AIDA_Histogram_native::GravityBin2D, and Anaphe::AIDA_Histogram_native::GravityBin3D.

Definition at line 51 of file GravityBin1D.h.

Referenced by centreOfGravityX(), increment(), reset(), scale(), and set().


The documentation for this class was generated from the following files:
Generated on Tue Nov 19 12:32:24 2002 for AIDA_Histogram_native by doxygen1.2.16