Begin Network build
This commit is contained in:
18
simple/Node.h
Normal file
18
simple/Node.h
Normal 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
|
Reference in New Issue
Block a user