-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.h
57 lines (42 loc) · 1.51 KB
/
Node.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef NODE_H
#define NODE_H
#include "ANNLAB.h"
#include "NodeActivationFunction.h"
#include "NodeActivationState.h"
using namespace std;
class Node
{
public:
// Basic constructors and destrcutors
//------------------------------------------------------
// Constructor
Node();
Node(NodeActivationFunction * NewActivationFunction, int NumberOfInputs, int NumberOfOutputs);
// Destructor
~Node();
// Copy constructor
Node(const Node& OriginalNode);
// Copy assignment operation
Node& operator= (const Node&);
// Move constructor
Node(Node&& OriginalNode); // Create deep copy of objects therin contained, delete orginals
// Move assignment operation
Node& operator= (Node&); // Create deep copy of objects therin contained, delete orginals
//------------------------------------------------------
// Lists node types to which this->NodeType can be set
void PrintAvailibleNodeTypes();
//void AddInputConnection(Node ConnectingNode);
//void RemoveInputConnection(Node DisconnectingNode);
vector<double> Connections;
float NodeValue = 0;
float NodeThreshold = 1; // 1 for now, try to come up with XOR network
NodeActivationFunction ActivationFunction;
protected:
// vector<const char *> NodeTypeCatalogue = {"Input", "Hidden", "Output"};
// string NodeType;
int NumberOfInputs = 0;
int NumberOfOutputs = 0;
//NodeActivationFunction ActivationFunction;
//NodeActivationState ActivationState;
};
#endif // NODE_H