npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
LOrPEMarginalSmoother.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_LORPEMARGINALSMOOTHER_HH_
2 #define NPSTAT_LORPEMARGINALSMOOTHER_HH_
3 
4 /*!
5 // \file LOrPEMarginalSmoother.hh
6 //
7 // \brief LOrPE adapter for automatic smoothing of 1-d marginals
8 //
9 // Author: I. Volobouev
10 //
11 // March 2013
12 */
13 
16 
17 namespace npstat {
19  {
20  public:
21  LOrPEMarginalSmoother(unsigned nbins, double xmin, double xmax,
22  int symbetaPower, double polyDegree,
23  double bandwidthfactor,
24  const BoundaryHandling& bm,
25  const char* label = 0);
26 
27  inline virtual ~LOrPEMarginalSmoother() {}
28 
29  //@{
30  /** Inspect object properties */
31  inline int symbetaPower() const {return symbetaPower_;}
32  inline double bwFactor() const {return bwFactor_;}
33  inline double polyDegree() const {return polyDegree_;}
34  inline const BoundaryHandling& boundaryMethod() const {return bm_;}
35  //@}
36 
37  private:
38  virtual void smoothHisto(HistoND<double>& histo,
39  double effectiveSampleSize,
40  double* bandwidthUsed,
41  bool isSampleWeighted);
42  double bwFactor_;
43  int symbetaPower_;
44  double polyDegree_;
45  BoundaryHandling bm_;
46  };
47 }
48 
49 #endif // NPSTAT_LORPEMARGINALSMOOTHER_HH_
Interface definition for 1-d nonparametric density estimation.
API for LOrPE boundary handling methods.
Definition: AbsMarginalSmootherBase.hh:29
Definition: BoundaryHandling.hh:21
Definition: LOrPEMarginalSmoother.hh:19
int symbetaPower() const
Definition: LOrPEMarginalSmoother.hh:31
Definition: AbsArrayProjector.hh:14