meerkat is hosted by Hepforge, IPPP Durham
Meerkat  v1r3
Multidimensional kernel density estimation package
UniformDensity.cpp
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <vector>
3 
4 #include "AbsPhaseSpace.hh"
5 #include "AbsDensity.hh"
6 #include "UniformDensity.hh"
7 
8 UniformDensity::UniformDensity(const char* pdfName, AbsPhaseSpace* thePhaseSpace) : AbsDensity(pdfName) {
9 
10  m_phaseSpace = thePhaseSpace;
11 }
12 
13 
15 
16 }
17 
18 Double_t UniformDensity::density(__attribute__((unused)) std::vector<Double_t> &x) {
19 
20  return 1.;
21 
22 }
Abstract class which defines probability density interface.
Definition: AbsDensity.hh:16
UniformDensity(const char *pdfName, AbsPhaseSpace *thePhaseSpace)
Constructor.
AbsPhaseSpace * m_phaseSpace
Reference to phase space.
Abstract class which defines phase space interface.
Double_t density(std::vector< Double_t > &x)
Calculate PDF value at the given point.
virtual ~UniformDensity()
Destructor.