Logo ROOT   6.10/09
Reference Guide
PDEFoamDiscriminantDensity.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Tancredi Carli, Dominik Dannheim, Alexander Voigt
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Classes: PDEFoamDiscriminantDensity *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Class PDEFoamDiscriminantDensity is a class representing *
12  * n-dimensional real positive integrand function *
13  * The main function is Density() which provides the event density at a *
14  * given point during the foam build-up (sampling). *
15  * *
16  * Authors (alphabetical): *
17  * Tancredi Carli - CERN, Switzerland *
18  * Dominik Dannheim - CERN, Switzerland *
19  * S. Jadach - Institute of Nuclear Physics, Cracow, Poland *
20  * Alexander Voigt - TU Dresden, Germany *
21  * Peter Speckmayer - CERN, Switzerland *
22  * *
23  * Copyright (c) 2008, 2010: *
24  * CERN, Switzerland *
25  * MPI-K Heidelberg, Germany *
26  * *
27  * Redistribution and use in source and binary forms, with or without *
28  * modification, are permitted according to the terms listed in LICENSE *
29  * (http://tmva.sourceforge.net/LICENSE) *
30  **********************************************************************************/
31 
32 #ifndef ROOT_TMVA_PDEFoamDiscriminantDensity
33 #define ROOT_TMVA_PDEFoamDiscriminantDensity
34 
36 
37 namespace TMVA
38 {
39 
40  // class definition of underlying event density
42  {
43 
44  protected:
45  UInt_t fClass; // signal class
46 
47  public:
49  PDEFoamDiscriminantDensity(std::vector<Double_t> box, UInt_t cls);
52 
53  // main function used by PDEFoam
54  // returns discriminant density N_class/N_total at a given point
55  // by range searching in BST
56  virtual Double_t Density(std::vector<Double_t> &Xarg, Double_t &event_density);
57 
58  ClassDef(PDEFoamDiscriminantDensity, 1) //Class for Discriminant density
59  }; //end of PDEFoamDiscriminantDensity
60 
61 } // namespace TMVA
62 
63 #endif
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
#define ClassDef(name, id)
Definition: Rtypes.h:297
unsigned int UInt_t
Definition: RtypesCore.h:42
double Double_t
Definition: RtypesCore.h:55
Abstract ClassifierFactory template that handles arbitrary types.
virtual Double_t Density(std::vector< Double_t > &Xarg, Double_t &event_density)
This function is needed during the foam buildup.
This is an abstract class, which provides an interface for a PDEFoam density estimator.
This is a concrete implementation of PDEFoam.