NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
FgGaussHermiteQuadrature.h
1
11#pragma once
12
13#include <NeMachineLearningLib.h>
14#include <MachineLearning/CommonUtil.h>
15
16namespace NeuralEngine
17{
18 namespace MachineLearning
19 {
20 template<typename Scalar>
21
47 class NE_IMPEXP GaussHermiteQuadrature
48 {
49 public:
50
63 static void Compute(int n, af::array& x, af::array& w);
64
65 private:
66
76 static af::array HermCompanion(const af::array& c);
77
93 static af::array NormedHermite(const af::array& x, int n);
94 };
95 }
96}
static af::array NormedHermite(const af::array &x, int n)
Evaluate a normalized Hermite polynomial..
static af::array HermCompanion(const af::array &c)
Return the scaled companion matrix of c.
static void Compute(int n, af::array &x, af::array &w)
Data direct.