From e373d9499ddac188bd4610535e5e436a335e8033 Mon Sep 17 00:00:00 2001 From: Rowan Torbitzky-Lane Date: Thu, 6 Mar 2025 19:51:23 -0600 Subject: [PATCH] start of vector instructions --- src/HushGP/Instructions/VectorIntInstructions.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HushGP/Instructions/VectorIntInstructions.hs b/src/HushGP/Instructions/VectorIntInstructions.hs index f021ea0..fbc8478 100644 --- a/src/HushGP/Instructions/VectorIntInstructions.hs +++ b/src/HushGP/Instructions/VectorIntInstructions.hs @@ -331,5 +331,10 @@ instructionVectorIntInsert = instructionVectorInsert int vectorInt instructionVectorIntInsertVectorInt :: State -> State instructionVectorIntInsertVectorInt = instructionVectorInsertVector vectorInt +-- |Takes the mean of the top int vector and pushes the rounded int value +-- to the int stack. +instructionVectorIntMean :: State -> State +instructionVectorIntMean = instructionVectorMean int vectorInt id + allVectorIntInstructions :: [Gene] allVectorIntInstructions = map StateFunc ($(functionExtractor "instruction"))