Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

IHistogram1D Class Reference

#include <IHistogram1D.h>

List of all members.


Detailed Description

User level interface to 1D Histogram.

Author:
The AIDA team (http://aida.freehep.org/)

Definition at line 28 of file IHistogram1D.h.


Public Member Functions

virtual ~IHistogram1D ()
 Destructor.
virtual bool fill (double x, double weight=1.)=0
virtual double binMean (int index) const =0
virtual int binEntries (int index) const =0
virtual double binHeight (int index) const =0
virtual double binError (int index) const =0
virtual double mean () const =0
virtual double rms () const =0
virtual const IAxis & axis () const =0
virtual int coordToIndex (double coord) const =0
virtual bool add (const IHistogram1D &hist)=0

Constructor & Destructor Documentation

virtual ~IHistogram1D  )  [inline, virtual]
 

Destructor.

Definition at line 32 of file IHistogram1D.h.


Member Function Documentation

virtual bool add const IHistogram1D hist  )  [pure virtual]
 

Add to this IHistogram1D the contents of another IHistogram1D.

Parameters:
hist The IHistogram1D to be added to this IHistogram1D.
Returns:
false If the IHistogram1Ds binnings are incompatible.

virtual const IAxis& axis  )  const [pure virtual]
 

Get the x axis of the IHistogram1D.

Returns:
The x coordinate IAxis.

Referenced by Rivet::normalize().

virtual int binEntries int  index  )  const [pure virtual]
 

Number of entries in the corresponding bin (ie the number of times fill was called for this bin).

Parameters:
index The bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns:
The number of entries in the corresponding bin.

virtual double binError int  index  )  const [pure virtual]
 

The error of a given bin.

Parameters:
index The bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns:
The error on the corresponding bin.

virtual double binHeight int  index  )  const [pure virtual]
 

Total height of the corresponding bin (ie the sum of the weights in this bin).

Parameters:
index The bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns:
The height of the corresponding bin.

Referenced by Rivet::normalize().

virtual double binMean int  index  )  const [pure virtual]
 

The weighted mean of a bin.

Parameters:
index The bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns:
The mean of the corresponding bin.

virtual int coordToIndex double  coord  )  const [pure virtual]
 

Get the bin number corresponding to a given coordinate along the x axis. This is a convenience method, equivalent to axis().coordToIndex(coord).

See also:
IAxis#coordToIndex(double)
Parameters:
coord The coordinalte along the x axis.
Returns:
The corresponding bin number.

virtual bool fill double  x,
double  weight = 1.
[pure virtual]
 

Fill the IHistogram1D with a value and the corresponding weight.

Parameters:
x The value to be filled in.
weight The corresponding weight (by default 1).
Returns:
false If the weight is <0 or >1 (?).

Referenced by ZPhys73C11::analyze(), TestAnalysis::analyze(), HepEx9506012::analyze(), HepEx0409040::analyze(), HepEx0112029::analyze(), and main().

virtual double mean  )  const [pure virtual]
 

The mean of the whole IHistogram1D.

Returns:
The mean of the IHistogram1D.

virtual double rms  )  const [pure virtual]
 

The RMS of the whole IHistogram1D.

Returns:
The RMS if the IHistogram1D.


The documentation for this class was generated from the following file: