meerkat is hosted by Hepforge, IPPP Durham
Meerkat  v1r3
Multidimensional kernel density estimation package
TransposedFactorisedDensity.hh
Go to the documentation of this file.
1 #ifndef TRANSPOSED_FACTORISED_DENSITY
2 #define TRANSPOSED_FACTORISED_DENSITY
3 
4 #include "AbsDensity.hh"
5 #include "AbsPhaseSpace.hh"
6 
7 #include "TMath.h"
8 
9 #include <vector>
10 
13 
15 
16  public:
17 
19 
26  TransposedFactorisedDensity(const char* pdfName,
27  AbsPhaseSpace* thePhaseSpace,
28  AbsDensity* density1,
29  AbsDensity* density2,
30  UInt_t index);
31 
34 
36 
40  Double_t density(std::vector<Double_t> &x);
41 
43 
47 
48  private:
49 
52 
55 
58 
60  UInt_t m_index;
61 
63  UInt_t m_dim;
64 
66  UInt_t m_dim1;
67 
69  UInt_t m_dim2;
70 
71 };
72 
73 #endif
TransposedFactorisedDensity(const char *pdfName, AbsPhaseSpace *thePhaseSpace, AbsDensity *density1, AbsDensity *density2, UInt_t index)
Constructor of factorised density of an arbitrary number of density components.
UInt_t m_dim2
Cached dimensionality of the density 2 phase space.
Abstract class which defines probability density interface.
Definition: AbsDensity.hh:16
virtual ~TransposedFactorisedDensity()
Destructor.
AbsDensity * m_density1
Density component 1.
Abstract class which defines phase space interface.
Double_t density(std::vector< Double_t > &x)
Calculate PDF value at the given point.
AbsDensity * m_density2
Density component 2.
UInt_t m_index
Index at which density 2 phase space is inserted.
UInt_t m_dim
Cached dimensionality of the combined phase space.
AbsPhaseSpace * m_phaseSpace
Reference to phase space.
UInt_t m_dim1
Cached dimensionality of the density 1 phase space.
AbsPhaseSpace * phaseSpace()
Return phase space definition for this PDF.