MUQ  0.4.3
HermiteFunction.h
Go to the documentation of this file.
1 #ifndef HERMITEFUNCTION_H_
2 #define HERMITEFUNCTION_H_
3 
4 
7 
8 namespace muq {
9  namespace Approximation {
10 
16  public:
17 
18 
21  polyBase(std::make_shared<PhysicistHermite>()){};
22 
23  virtual ~HermiteFunction() = default;
24 
26  virtual double BasisEvaluate(int const order, double const x) const override;
27 
29  virtual double DerivativeEvaluate(int const polyOrder, int const derivOrder, double const x) const override;
30 
31  private:
32 
33  static unsigned nChoosek(unsigned n, unsigned k);
34 
35  std::shared_ptr<PhysicistHermite> polyBase;
36 
37  };
38  } // namespace Approximation
39 } // namespace muq
40 
41 
42 #endif
A 1D hermite function based on Physicist Hermite Polynomials.
virtual double BasisEvaluate(int const order, double const x) const override
Evaluate the hermite function.
HermiteFunction()
Create a polynomial.
std::shared_ptr< PhysicistHermite > polyBase
static unsigned nChoosek(unsigned n, unsigned k)
virtual double DerivativeEvaluate(int const polyOrder, int const derivOrder, double const x) const override