7 #ifndef AIDA_IHISTOGRAM1D_H
8 #define AIDA_IHISTOGRAM1D_H 1
15 #include "AIDA/IHistogram.h"
42 virtual bool fill(
double x,
double weight = 1.) = 0;
50 virtual double binMean(
int index)
const = 0;
66 virtual double binHeight(
int index)
const = 0;
74 virtual double binError(
int index)
const = 0;
81 virtual double mean()
const = 0;
88 virtual double rms()
const = 0;
virtual const IAxis & axis() const =0
Get the x axis of the IHistogram1D.
virtual bool fill(double x, double weight=1.)=0
Fill the IHistogram1D with a value and the corresponding weight.
virtual double binMean(int index) const =0
The weighted mean of a bin.
User level interface to 1D Histogram.
Definition: IHistogram1D.h:28
virtual double binHeight(int index) const =0
Total height of the corresponding bin (ie the sum of the weights in this bin).
virtual bool add(const IHistogram1D &hist)=0
Add to this IHistogram1D the contents of another IHistogram1D.
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual double mean() const =0
The mean of the whole IHistogram1D.
virtual ~IHistogram1D()
Destructor.
Definition: IHistogram1D.h:32
virtual double rms() const =0
The RMS of the whole IHistogram1D.
virtual int coordToIndex(double coord) const =0
Get the bin number corresponding to a given coordinate along the x axis.
virtual int binEntries(int index) const =0
Number of entries in the corresponding bin (ie the number of times fill was called for this bin)...
virtual double binError(int index) const =0
The error of a given bin.
User level interface to Histogram.
Definition: IHistogram.h:26