summaryrefslogtreecommitdiff
path: root/src/Mind.hs
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-21 14:16:38 -0600
committersanine <sanine.not@pm.me>2023-11-21 14:16:38 -0600
commitfae22e68282336fc0d7f0efda236410a294b7eb5 (patch)
treec42926a3edf1f4c4e98f9fb2c76af5ade24d7f6c /src/Mind.hs
parent23e8acfc1eaa1702e55f47239e4b4dfbe9d35fca (diff)
add failing compute tests
Diffstat (limited to 'src/Mind.hs')
-rw-r--r--src/Mind.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mind.hs b/src/Mind.hs
index 1ce8ab3..2971476 100644
--- a/src/Mind.hs
+++ b/src/Mind.hs
@@ -7,6 +7,7 @@ module Mind
, Network (..)
, createEmptyNetwork
, connectNeurons
+ , compute
) where
import Data.Ix
@@ -71,3 +72,8 @@ insertEdge ns i e
| (inRange (0, length ns) i) = let (front, es:back) = splitAt i ns
in Just $ front ++ [e:es] ++ back
| otherwise = Nothing
+
+
+-- network computation
+compute :: Network -> [Float] -> [Float] -> Maybe ([Float], [Float])
+compute net input state = undefined