meerkat is hosted by Hepforge, IPPP Durham
Meerkat  v1r3
Multidimensional kernel density estimation package
DivideDensity.hh
Go to the documentation of this file.
1 #ifndef DIVIDE_DENSITY
2 #define DIVIDE_DENSITY
3 
4 #include "AbsDensity.hh"
5 #include "AbsPhaseSpace.hh"
6 
7 #include "TMath.h"
8 
9 #include <vector>
10 
12 
13 class DivideDensity : public AbsDensity {
14 
15  public:
16 
18 
24  DivideDensity(const char* pdfName,
25  AbsPhaseSpace* thePhaseSpace,
26  AbsDensity* d1,
27  AbsDensity* d2);
28 
30  virtual ~DivideDensity();
31 
33 
37  Double_t density(std::vector<Double_t> &x);
38 
40 
44 
45  private:
46 
49 
52 
55 
57  UInt_t m_dim;
58 
59 };
60 
61 #endif
Abstract class which defines probability density interface.
Definition: AbsDensity.hh:16
Class that describes the "divide" density: the ratio of two densities in the same phase spaces...
DivideDensity(const char *pdfName, AbsPhaseSpace *thePhaseSpace, AbsDensity *d1, AbsDensity *d2)
Constructor of Divide density.
AbsDensity * m_density2
Density component 2.
Abstract class which defines phase space interface.
Double_t density(std::vector< Double_t > &x)
Calculate PDF value at the given point.
AbsPhaseSpace * m_phaseSpace
Reference to phase space.
UInt_t m_dim
Cached dimensionality of the phase space.
AbsPhaseSpace * phaseSpace()
Return phase space definition for this PDF.
virtual ~DivideDensity()
Destructor.
AbsDensity * m_density1
Density component 1.