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
16namespace NeuralEngine
17{
18 namespace MachineLearning
19 {
38 class NE_IMPEXP Potential
39 {
40 public:
41
48
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}
It is simply a std::vector with an interface designed for dealing with probability mass functions....
Definition: FgPotential.h:39
void Add(double value)
Adds a potential value.
void Set(double value, int index)
Sets a potential value at given index.
double Get(int index)
Gets a potential value using the given index.