From b60fc19d96f6cc82b0dc5d995dc3ea61a790930c Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Thu, 29 Jan 2026 12:31:23 +0100 Subject: [PATCH] Simplyfying --- MemoryCell.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MemoryCell.cs b/MemoryCell.cs index 6e20a75..fe81c1c 100644 --- a/MemoryCell.cs +++ b/MemoryCell.cs @@ -12,8 +12,8 @@ public class MemoryCell : Neuron { // Returns the memorized value weighted by time // return lastValue * (current time - last time) - [SerializeField] - public bool deltaValue = false; + // [SerializeField] + // public bool deltaValue = false; #endregion Parameters @@ -46,12 +46,12 @@ public class MemoryCell : Neuron { public override void UpdateResult(Vector3 result) { // output value is the previous value - if (this.deltaValue) { - float deltaTime = Time.time - this._memorizedTime; - this._outputValue = this._memorizedValue * deltaTime; - } - else - this._outputValue = this._memorizedValue; + // if (this.deltaValue) { + // float deltaTime = Time.time - this._memorizedTime; + // this._outputValue = this._memorizedValue * deltaTime; + // } + //else + this.outputValue = this._memorizedValue; // Store the result for the next time this._memorizedValue = result;