RAIDA  1.9.0
IHistogram1D.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_IHISTOGRAM1D_H
8 #define AIDA_IHISTOGRAM1D_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include "AIDA/IHistogram.h"
16 
17 namespace AIDA {
18 
19  class IAxis;
20 
28 class IHistogram1D : virtual public IHistogram {
29 
30 public:
32  virtual ~IHistogram1D() { /* nop */; }
33 
42  virtual bool fill(double x, double weight = 1.) = 0;
43 
50  virtual double binMean(int index) const = 0;
51 
58  virtual int binEntries(int index) const = 0;
59 
66  virtual double binHeight(int index) const = 0;
67 
74  virtual double binError(int index) const = 0;
75 
81  virtual double mean() const = 0;
82 
88  virtual double rms() const = 0;
89 
95  virtual const IAxis & axis() const = 0;
96 
105  virtual int coordToIndex(double coord) const = 0;
106 
113  virtual bool add(const IHistogram1D & hist) = 0;
114 
115 
116 }; // class
117 } // namespace AIDA
118 #endif /* ifndef AIDA_IHISTOGRAM1D_H */
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