npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
RecurrenceCoeffsTrGauss.hh
1 #ifndef NPSTAT_RECURRENCECOEFFSTRGAUSS_HH_
2 #define NPSTAT_RECURRENCECOEFFSTRGAUSS_HH_
3 
4 //======================================================================
5 // RecurrenceCoeffsTrGauss.hh
6 //
7 // This is an internal header which is subject to change without
8 // notice. Application code should never use classes or functions
9 // declared/defined in this header directly.
10 //
11 // Author: I. Volobouev
12 //
13 // May 2017
14 //======================================================================
15 
16 #include "npstat/nm/RecurrenceCoeffs.hh"
18 
19 namespace npstat {
20  namespace Private {
21  // "transformFromGauss" is the transform connecting the standard
22  // normal variable with the variable distributed with the density
23  // equal to the OPS weight.
24  //
25  // The "Numeric" type should be either double or, preferably,
26  // long double.
27  //
28  // The "quadraturePoints" argument will be passed to
29  // GaussHermiteQuadrature and should be supported by that
30  // class. The choice of the quadrature rule is a compromise
31  // between good precision (more points are better)
32  // and the chance that we will exceed the range of
33  // double precision numbers when the functor is evaluated
34  // (quadratures with more points use larger arguments).
35  //
36  template<typename Numeric>
37  void calcRecurrenceCoeffsTrGauss(
38  const Functor1<Numeric, Numeric>& transformFromGauss,
39  unsigned maxdeg, OrthoPolyMethod m, unsigned quadraturePoints,
40  std::vector<Recurrence>* rcoeffs);
41  }
42 }
43 
44 #include "npstat/nm/RecurrenceCoeffsTrGauss.icc"
45 
46 #endif // NPSTAT_RECURRENCECOEFFSTRGAUSS_HH_
Interface definitions and concrete simple functors for a variety of functor-based calculations.
Definition: AbsArrayProjector.hh:14
OrthoPolyMethod
Definition: OrthoPolyMethod.hh:20