npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
DummyResponseBoxBuilder.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_DUMMYRESPONSEBOXBUILDER_HH_
2 #define NPSTAT_DUMMYRESPONSEBOXBUILDER_HH_
3 
4 /*!
5 // \file DummyResponseBoxBuilder.hh
6 //
7 // \brief Dummy implementation of AbsResponseBoxBuilder useful for testing
8 //
9 // Author: I. Volobouev
10 //
11 // July 2015
12 */
13 
16 
17 namespace npstat {
18  template <class Point>
20  {
21  public:
23  typedef typename B::WeightedPointPtr WeightedPointPtr;
24  typedef typename B::WeightedPtrVec WeightedPtrVec;
25 
26  inline virtual ~DummyResponseBoxBuilder() {}
27 
28  inline BoxND<double> makeResponseBox(
29  unsigned long /* uniqueId */,
30  const double* /* predictorCoords */, unsigned /* nPredictors */,
31  const BoxND<double>& /* predictorBox */,
32  std::vector<OrderedPointND<Point> >& /* data */) const
33  {
35  }
36 
37  inline BoxND<double> makeResponseBoxW(
38  unsigned long /* uniqueId */,
39  const double* /* predictorCoords */, unsigned /* nPredictors */,
40  const BoxND<double>& /* predBox */, const WeightedPtrVec& /*data*/,
41  const unsigned* /* dimsToUse */, const unsigned nDimsToUse) const
42  {
43  return BoxND<double>(nDimsToUse);
44  }
45  };
46 }
47 
48 #endif // NPSTAT_DUMMYRESPONSEBOXBUILDER_HH_
Base class for building response boxes for multivariate density estimation in regression context.
Compile-time dimensionality detector for classes like std::array.
Definition: AbsResponseBoxBuilder.hh:23
Definition: DummyResponseBoxBuilder.hh:20
Definition: OrderedPointND.hh:40
Definition: AbsArrayProjector.hh:14
Definition: PointDimensionality.hh:20