Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:03

0001 // @(#)root/tmva $Id$
0002 // Author: Dominik Dannheim, Alexander Voigt
0003 
0004 /**********************************************************************************
0005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
0006  * Package: TMVA                                                                  *
0007  * Classes: PDEFoamKernelLinN                                                     *
0008  *                                             *
0009  *                                                                                *
0010  * Description:                                                                   *
0011  *      PDEFoam kernel, which linear weights with the neighbor cells.             *
0012  *                                                                                *
0013  * Authors (alphabetical):                                                        *
0014  *      S. Jadach        - Institute of Nuclear Physics, Cracow, Poland           *
0015  *      Tancredi Carli   - CERN, Switzerland                                      *
0016  *      Dominik Dannheim - CERN, Switzerland                                      *
0017  *      Alexander Voigt  - TU Dresden, Germany                                    *
0018  *                                                                                *
0019  * Copyright (c) 2010:                                                            *
0020  *      CERN, Switzerland                                                         *
0021  *      MPI-K Heidelberg, Germany                                                 *
0022  *                                                                                *
0023  * Redistribution and use in source and binary forms, with or without             *
0024  * modification, are permitted according to the terms listed in LICENSE           *
0025  * (see tmva/doc/LICENSE)                                          *
0026  **********************************************************************************/
0027 
0028 #ifndef ROOT_TMVA_PDEFoamKernelLinN
0029 #define ROOT_TMVA_PDEFoamKernelLinN
0030 
0031 #include "TMVA/PDEFoam.h"
0032 #include "TMVA/PDEFoamKernelBase.h"
0033 
0034 #include <vector>
0035 
0036 namespace TMVA
0037 {
0038 
0039    class PDEFoamKernelLinN : public PDEFoamKernelBase
0040    {
0041 
0042    protected:
0043       // helper function, which linear weights with the neighbor cells
0044       Float_t WeightLinNeighbors(PDEFoam*, std::vector<Float_t>&, ECellValue, Bool_t);
0045 
0046       // helper function for WeightLinNeighbors()
0047       Float_t GetAverageNeighborsValue(PDEFoam*, std::vector<Float_t>&, ECellValue);
0048 
0049    public:
0050       PDEFoamKernelLinN();                 // Constructor
0051       PDEFoamKernelLinN(const PDEFoamKernelLinN&); // Copy Constructor
0052       virtual ~PDEFoamKernelLinN() {}      // Destructor
0053 
0054       // kernel estimator
0055       virtual Float_t Estimate(PDEFoam*, std::vector<Float_t>&, ECellValue);
0056 
0057       ClassDef(PDEFoamKernelLinN, 1) // next neighbor PDEFoam kernel estimator
0058          }; // end of PDEFoamKernelLinN
0059 }  // namespace TMVA
0060 
0061 #endif