aboutsummaryrefslogtreecommitdiff
path: root/src/NodeSearchPrms.cpp
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 /src/NodeSearchPrms.cpp
Initial commitHEADmaster
Diffstat (limited to 'src/NodeSearchPrms.cpp')
-rw-r--r--src/NodeSearchPrms.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/NodeSearchPrms.cpp b/src/NodeSearchPrms.cpp
new file mode 100644
index 0000000..db2421a
--- /dev/null
+++ b/src/NodeSearchPrms.cpp
@@ -0,0 +1,23 @@
+#include <HyperNeat/NeuralNetPrms.hpp>
+#include <HyperNeat/NodeSearchPrms.hpp>
+
+using namespace hyperneat;
+
+NodeSearchPrms::NodeSearchPrms(size_t o, size_t x, size_t y)
+ : _o(o), _x(x), _y(y), _useDistance(false)
+{}
+
+NodeSearchPrms::NodeSearchPrms(size_t o, size_t x, size_t y, size_t d)
+ : _o(o), _x(x), _y(y), _d(d)
+{}
+
+void
+NodeSearchPrms::importFrom(const NeuralNetPrms& nnPrms)
+{
+ _testGridLevel = nnPrms._testGridLevel;
+ _maxQuadTreeLevel = nnPrms._maxQuadTreeLevel;
+ _minQuadTreeLevel = nnPrms._minQuadTreeLevel;
+ _bandPruningThreshold = nnPrms._bandPruningThreshold;
+ _varianceThreshold = nnPrms._varianceThreshold;
+ _divisionThreshold = nnPrms._divisionThreshold;
+}