aboutsummaryrefslogtreecommitdiff
path: root/include/HyperNeat/Utils/NodeTypes.hpp
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:04:34 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:16:14 +0100
commite6ab4a8ed100d5d5b7611c74cf3ccd556f1f1d71 (patch)
tree129cf13c2f9b3eae54402300db4570815789a02a /include/HyperNeat/Utils/NodeTypes.hpp
Initial commitHEADmaster
Diffstat (limited to 'include/HyperNeat/Utils/NodeTypes.hpp')
-rw-r--r--include/HyperNeat/Utils/NodeTypes.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/HyperNeat/Utils/NodeTypes.hpp b/include/HyperNeat/Utils/NodeTypes.hpp
new file mode 100644
index 0000000..815214e
--- /dev/null
+++ b/include/HyperNeat/Utils/NodeTypes.hpp
@@ -0,0 +1,22 @@
+#ifndef __HYPERNEAT_NODETYPES_HPP__
+#define __HYPERNEAT_NODETYPES_HPP__
+
+#include <HyperNeat/Utils/String.hpp>
+
+namespace hyperneat
+{
+ enum class NodeType {
+ NULL_TYPE = -1,
+ SIGMOID = 0,
+ GAUSSIAN = 1,
+ SINE = 2,
+ ABSOLUTE = 3,
+ };
+
+ String nodeToString(NodeType type);
+ NodeType stringToNode(const String& str);
+
+ const size_t NODE_TYPES_COUNT = 4;
+}
+
+#endif