コード例 #1
0
        public override ISignalArray activateNetwork(double[] sensors)
        {
            AcceptabilityFn.Reset();
            var results = base.activateNetwork(sensors);

            double[] outputs = new double[results.Length];
            results.CopyTo(outputs, 0);

            if (Memory.Count >= MemorySize)
            {
                Memory.RemoveFirst();
            }

            Memory.AddLast(new StateActionReward(sensors, outputs, 0));

            return(results);
        }