BinnedKernelDensity.hh
Go to the documentation of this file.
445 void fillMapFromTree( TTree* tree, std::vector<TString> &vars, UInt_t maxEvents = 0, UInt_t skipEvents = 0);
void writeToRootFile(const char *fileName) Write the binned density into a ROOT file. Definition: BinnedKernelDensity.cpp:744 BinnedKernelDensity(const char *pdfName, AbsPhaseSpace *thePhaseSpace, TTree *tree, const char *vars1, UInt_t bins1, Double_t width1, AbsDensity *approx=0, UInt_t toyEvents=0, UInt_t maxEvents=0, UInt_t skipEvents=0) Constructor for 1-dimensional kernel PDF with binned interpolation from the sample of points in an NT... Definition: BinnedKernelDensity.cpp:31 void normalise(void) Normalise the PDF such that the average PDF value over the allowed phase space equals to 1... Definition: BinnedKernelDensity.cpp:827 std::vector< UInt_t > m_binning Vector of bin numbers in each variable. Definition: BinnedKernelDensity.hh:463 UInt_t iterToIndex(std::vector< UInt_t > &iter) Convert an N-dimensional iterator vector into a linear bin index in the bin map. Definition: BinnedKernelDensity.cpp:392 Double_t density(std::vector< Double_t > &x) Calculate PDF density at the point. Multilinear binned interpolation is used which is calculated in t... Definition: BinnedKernelDensity.cpp:996 void fillMapFromTree(TTree *tree, std::vector< TString > &vars, UInt_t maxEvents=0, UInt_t skipEvents=0) Definition: BinnedKernelDensity.cpp:488 void addToMap(std::vector< Double_t > &map, std::vector< Double_t > &point, Double_t weight=1.) Add a kernel density of a single data point to the binned map. Definition: BinnedKernelDensity.cpp:405 void init(AbsPhaseSpace *thePhaseSpace, TTree *tree, std::vector< TString > &vars, std::vector< UInt_t > &binning, std::vector< Double_t > &width, AbsDensity *approx=0, UInt_t toyEvents=0, UInt_t maxEvents=0, UInt_t skipEvents=0) Common initialise method used by all constructors. Definition: BinnedKernelDensity.cpp:336 Double_t mapDensity(std::vector< Double_t > &map, std::vector< Double_t > &x) Calculate the raw density using the binned map (estimated or approximation) at a given point... Definition: BinnedKernelDensity.cpp:895 void writeToTextFile(const char *fileName) Write the binned PDF to a text file. Definition: BinnedKernelDensity.cpp:682 void writeToFile(const char *fileName) Write density map to a file, ROOT or text depending on extension. Definition: BinnedKernelDensity.cpp:673 void fillMapFromDensity(AbsDensity *density, UInt_t toyEvents=0) Definition: BinnedKernelDensity.cpp:566 Definition: BinnedKernelDensity.hh:10 std::vector< Double_t > m_approxMap Bin map of approximation PDF convolved with the kernel. Definition: BinnedKernelDensity.hh:460 void setFractionalMode(Bool_t mode=true) Set fractional mode of operation. Definition: BinnedKernelDensity.hh:400 Generated by 1.8.9.1 |