npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
AbsTwoDistros1DFunctor.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_ABSTWODISTROS1DFUNCTOR_HH_
2 #define NPSTAT_ABSTWODISTROS1DFUNCTOR_HH_
3 
4 /*!
5 // \file AbsTwoDistros1DFunctor.hh
6 //
7 // \brief A base class for functors used to study GoF tests
8 //
9 // Author: I. Volobouev
10 //
11 // October 2022
12 */
13 
14 #include "geners/CPP11_auto_ptr.hh"
15 
18 
19 namespace npstat {
20  class AbsTwoDistros1DFunctor : public Functor1<double, double>
21  {
22  public:
23  AbsTwoDistros1DFunctor(const AbsDistribution1D& nullHypothesis,
24  const AbsDistribution1D& alternative);
25 
28 
29  inline virtual ~AbsTwoDistros1DFunctor() {}
30 
31  // The following Functor1<double, double> method still needs
32  // to be overriden:
33  //
34  // virtual double operator()(const double& x) const
35 
36  protected:
37  CPP11_auto_ptr<AbsDistribution1D> nullPtr_;
38  CPP11_auto_ptr<AbsDistribution1D> altPtr_;
39  };
40 }
41 
42 #endif // NPSTAT_ABSTWODISTROS1DFUNCTOR_HH_
Interface definition for 1-d continuous statistical distributions.
Interface definitions and concrete simple functors for a variety of functor-based calculations.
Definition: AbsTwoDistros1DFunctor.hh:21
Definition: AbsArrayProjector.hh:14
Definition: AbsDistribution1D.hh:31
Definition: SimpleFunctors.hh:58