ROOT logo
// @(#)root/tmva $Id$
// Author: Dominik Dannheim, Alexander Voigt

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Classes: PDEFoamKernelLinN                                                     *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *      PDEFoam kernel, which linear weights with the neighbor cells.             *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      S. Jadach        - Institute of Nuclear Physics, Cracow, Poland           *
 *      Tancredi Carli   - CERN, Switzerland                                      *
 *      Dominik Dannheim - CERN, Switzerland                                      *
 *      Alexander Voigt  - TU Dresden, Germany                                    *
 *                                                                                *
 * Copyright (c) 2010:                                                            *
 *      CERN, Switzerland                                                         *
 *      MPI-K Heidelberg, Germany                                                 *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/

#ifndef ROOT_TMVA_PDEFoamKernelLinN
#define ROOT_TMVA_PDEFoamKernelLinN

#ifndef ROOT_TMVA_PDEFoam
#include "TMVA/PDEFoam.h"
#endif
#ifndef ROOT_TMVA_PDEFoamKernelBase
#include "TMVA/PDEFoamKernelBase.h"
#endif

namespace TMVA
{

   class PDEFoamKernelLinN : public PDEFoamKernelBase
   {

   protected:
      // helper function, which linear weights with the neighbor cells
      Float_t WeightLinNeighbors(PDEFoam*, std::vector<Float_t>&, ECellValue, Bool_t);

      // helper function for WeightLinNeighbors()
      Float_t GetAverageNeighborsValue(PDEFoam*, std::vector<Float_t>&, ECellValue);

   public:
      PDEFoamKernelLinN();                 // Constructor
      PDEFoamKernelLinN(const PDEFoamKernelLinN&); // Copy Constructor
      virtual ~PDEFoamKernelLinN() {}      // Destructor

      // kernel estimator
      virtual Float_t Estimate(PDEFoam*, std::vector<Float_t>&, ECellValue);

      ClassDef(PDEFoamKernelLinN, 1) // next neighbor PDEFoam kernel estimator
   }; // end of PDEFoamKernelLinN
}  // namespace TMVA

#endif
 PDEFoamKernelLinN.h:1
 PDEFoamKernelLinN.h:2
 PDEFoamKernelLinN.h:3
 PDEFoamKernelLinN.h:4
 PDEFoamKernelLinN.h:5
 PDEFoamKernelLinN.h:6
 PDEFoamKernelLinN.h:7
 PDEFoamKernelLinN.h:8
 PDEFoamKernelLinN.h:9
 PDEFoamKernelLinN.h:10
 PDEFoamKernelLinN.h:11
 PDEFoamKernelLinN.h:12
 PDEFoamKernelLinN.h:13
 PDEFoamKernelLinN.h:14
 PDEFoamKernelLinN.h:15
 PDEFoamKernelLinN.h:16
 PDEFoamKernelLinN.h:17
 PDEFoamKernelLinN.h:18
 PDEFoamKernelLinN.h:19
 PDEFoamKernelLinN.h:20
 PDEFoamKernelLinN.h:21
 PDEFoamKernelLinN.h:22
 PDEFoamKernelLinN.h:23
 PDEFoamKernelLinN.h:24
 PDEFoamKernelLinN.h:25
 PDEFoamKernelLinN.h:26
 PDEFoamKernelLinN.h:27
 PDEFoamKernelLinN.h:28
 PDEFoamKernelLinN.h:29
 PDEFoamKernelLinN.h:30
 PDEFoamKernelLinN.h:31
 PDEFoamKernelLinN.h:32
 PDEFoamKernelLinN.h:33
 PDEFoamKernelLinN.h:34
 PDEFoamKernelLinN.h:35
 PDEFoamKernelLinN.h:36
 PDEFoamKernelLinN.h:37
 PDEFoamKernelLinN.h:38
 PDEFoamKernelLinN.h:39
 PDEFoamKernelLinN.h:40
 PDEFoamKernelLinN.h:41
 PDEFoamKernelLinN.h:42
 PDEFoamKernelLinN.h:43
 PDEFoamKernelLinN.h:44
 PDEFoamKernelLinN.h:45
 PDEFoamKernelLinN.h:46
 PDEFoamKernelLinN.h:47
 PDEFoamKernelLinN.h:48
 PDEFoamKernelLinN.h:49
 PDEFoamKernelLinN.h:50
 PDEFoamKernelLinN.h:51
 PDEFoamKernelLinN.h:52
 PDEFoamKernelLinN.h:53
 PDEFoamKernelLinN.h:54
 PDEFoamKernelLinN.h:55
 PDEFoamKernelLinN.h:56
 PDEFoamKernelLinN.h:57
 PDEFoamKernelLinN.h:58
 PDEFoamKernelLinN.h:59
 PDEFoamKernelLinN.h:60
 PDEFoamKernelLinN.h:61
 PDEFoamKernelLinN.h:62
 PDEFoamKernelLinN.h:63