NeuralEngine A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes. |

FgPotential.h
1
11#pragma once
12
13#include <NeMachineLearningLib.h>
14#include <vector>
15
16 namespace NeuralEngine
17{
18 namespace MachineLearning
19 {
38 class NE_IMPEXP Potential
39 {
40 public:
41
47 Potential();
48
54 ~Potential();
55
63 void Add(double value);
64
73 void Set(double value, int index);
74
84 double Get(int index);
85
86 private:
87 std::vector<double> vP; // all probability combinations of a factor node
88 };
89 }
90}
NeuralEngine::MachineLearning::Potential
It is simply a std::vector with an interface designed for dealing with probability mass functions....
Definition: FgPotential.h:39
NeuralEngine::MachineLearning::Potential::Potential
Potential()
Default constructor.
NeuralEngine::MachineLearning::Potential::Add
void Add(double value)
Adds a potential value.
NeuralEngine::MachineLearning::Potential::~Potential
~Potential()
Destructor.
NeuralEngine::MachineLearning::Potential::Set
void Set(double value, int index)
Sets a potential value at given index.
NeuralEngine::MachineLearning::Potential::Get
double Get(int index)
Gets a potential value using the given index.
NeuralEngine
Definition: NeArray2.h:18