Begin Network build

This commit is contained in:
2023-06-29 22:00:41 +02:00
parent 00ed1e0be1
commit 8e9c3483aa
18 changed files with 874 additions and 0 deletions

18
simple/Node.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef NODE_H
#define NODE_H
#include <string>
#include <vector>
#include <map>
namespace bayesnet {
class Node {
private:
std::string name;
std::vector<Node*> parents;
std::vector<Node*> children;
std::map<std::vector<bool>, double> cpt; // Conditional Probability Table
public:
Node(std::string);
void addParent(Node*);
};
}
#endif