Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
PDEFoamKernelLinN.h
Go to the documentation of this file.
1// @(#)root/tmva $Id$
2// Author: Dominik Dannheim, Alexander Voigt
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6 * Package: TMVA *
7 * Classes: PDEFoamKernelLinN *
8 * *
9 * *
10 * Description: *
11 * PDEFoam kernel, which linear weights with the neighbor cells. *
12 * *
13 * Authors (alphabetical): *
14 * S. Jadach - Institute of Nuclear Physics, Cracow, Poland *
15 * Tancredi Carli - CERN, Switzerland *
16 * Dominik Dannheim - CERN, Switzerland *
17 * Alexander Voigt - TU Dresden, Germany *
18 * *
19 * Copyright (c) 2010: *
20 * CERN, Switzerland *
21 * MPI-K Heidelberg, Germany *
22 * *
23 * Redistribution and use in source and binary forms, with or without *
24 * modification, are permitted according to the terms listed in LICENSE *
25 * (see tmva/doc/LICENSE) *
26 **********************************************************************************/
27
28#ifndef ROOT_TMVA_PDEFoamKernelLinN
29#define ROOT_TMVA_PDEFoamKernelLinN
30
31#include "TMVA/PDEFoam.h"
33
34#include <vector>
35
36namespace TMVA
37{
38
40 {
41
42 protected:
43 // helper function, which linear weights with the neighbor cells
44 Float_t WeightLinNeighbors(PDEFoam*, std::vector<Float_t>&, ECellValue, Bool_t);
45
46 // helper function for WeightLinNeighbors()
47 Float_t GetAverageNeighborsValue(PDEFoam*, std::vector<Float_t>&, ECellValue);
48
49 public:
50 PDEFoamKernelLinN(); // Constructor
51 PDEFoamKernelLinN(const PDEFoamKernelLinN&); // Copy Constructor
52 virtual ~PDEFoamKernelLinN() {} // Destructor
53
54 // kernel estimator
55 virtual Float_t Estimate(PDEFoam*, std::vector<Float_t>&, ECellValue);
56
57 ClassDef(PDEFoamKernelLinN, 1) // next neighbor PDEFoam kernel estimator
58 }; // end of PDEFoamKernelLinN
59} // namespace TMVA
60
61#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDef(name, id)
Definition Rtypes.h:342
This class is the abstract kernel interface for PDEFoam.
This PDEFoam kernel estimates a cell value for a given event by weighting with cell values of the nea...
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)
Linear neighbors kernel estimator.
Float_t WeightLinNeighbors(PDEFoam *, std::vector< Float_t > &, ECellValue, Bool_t)
Returns the cell value, corresponding to 'txvec' (foam coordinates [0,1]), weighted by the neighbor c...
Float_t GetAverageNeighborsValue(PDEFoam *, std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
PDEFoamKernelLinN()
Default constructor for streamer.
Implementation of PDEFoam.
Definition PDEFoam.h:79
ECellValue
Definition PDEFoam.h:69
create variable transformations