npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
DummyResponseIntervalBuilder.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_DUMMYRESPONSEINTERVALBUILDER_HH_
2 #define NPSTAT_DUMMYRESPONSEINTERVALBUILDER_HH_
3 
4 /*!
5 // \file DummyResponseIntervalBuilder.hh
6 //
7 // \brief Dummy implementation of AbsResponseIntervalBuilder useful for testing
8 //
9 // Author: I. Volobouev
10 //
11 // July 2015
12 */
13 
15 
16 namespace npstat {
17  template <class Point>
19  {
20  public:
22  typedef typename B::WeightedPointPtr WeightedPointPtr;
23  typedef typename B::WeightedPtrVec WeightedPtrVec;
24 
25  inline virtual ~DummyResponseIntervalBuilder() {}
26 
27  inline Interval<double> makeResponseInterval(
28  unsigned long, const double*, unsigned, const BoxND<double>&,
29  std::vector<typename Point::value_type>&) const
30  {return Interval<double>(0.0, 0.0);}
31 
32  inline Interval<double> makeResponseIntervalW(
33  unsigned long, const double*, unsigned,
34  const BoxND<double>&, const WeightedPtrVec&, unsigned) const
35  {return Interval<double>(0.0, 0.0);}
36  };
37 }
38 
39 #endif // NPSTAT_DUMMYRESPONSEINTERVALBUILDER_HH_
Base class for building response boxes for univariate density estimation in the regression context.
Definition: AbsResponseIntervalBuilder.hh:23
Definition: DummyResponseIntervalBuilder.hh:19
Definition: Interval.hh:29
Definition: AbsArrayProjector.hh:14