npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
saddlepointDistribution1D.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_SADDLEPOINTDISTRIBUTION1D_HH_
2 #define NPSTAT_SADDLEPOINTDISTRIBUTION1D_HH_
3 
4 /*!
5 // \file saddlepointDistribution1D.hh
6 //
7 // \brief Function for building univariate distributions by tabulating and
8 // normalizing the saddlepoint density approximations
9 //
10 // Author: I. Volobouev
11 //
12 // December 2019
13 */
14 
15 #include "geners/CPP11_auto_ptr.hh"
16 
17 #include "npstat/stat/AbsCGF1D.hh"
19 
20 namespace npstat {
21  CPP11_auto_ptr<Tabulated1D> saddlepointDistribution1D(
22  const AbsCGF1D& cgf, unsigned saddlepointApproximationOrder,
23  unsigned tableInterpolationDegree, unsigned nCoords,
24  double xmin, double xmax);
25 
26 #ifdef SWIG
27  inline Tabulated1D* saddlepointDistribution1D_2(
28  const AbsCGF1D& cgf, unsigned saddlepointApproximationOrder,
29  unsigned tableInterpolationDegree, unsigned nCoords,
30  double xmin, double xmax)
31  {
32  CPP11_auto_ptr<Tabulated1D> ptr = saddlepointDistribution1D(
33  cgf, saddlepointApproximationOrder, tableInterpolationDegree,
34  nCoords, xmin, xmax);
35  return ptr.release();
36  }
37 #endif
38 }
39 
40 #endif // NPSTAT_SADDLEPOINTDISTRIBUTION1D_HH_
Interface definition for univariate cumulant generating functions.
A number of useful 1-d continuous statistical distributions.
Definition: AbsArrayProjector.hh:14