diff --git a/Cluster.cs b/Cluster.cs index 1868d91..de9b6d0 100644 --- a/Cluster.cs +++ b/Cluster.cs @@ -249,7 +249,7 @@ public class Cluster : Nucleus { UpdateStateIsolated(bias); } public override void UpdateStateIsolated(float3 bias) { - float3 sum = bias; + Vector3 sum = bias; //Applying the weight factors foreach (Synapse synapse in this.synapses) { diff --git a/MemoryCell.cs b/MemoryCell.cs index 7da9ed1..dd69652 100644 --- a/MemoryCell.cs +++ b/MemoryCell.cs @@ -31,7 +31,7 @@ public class MemoryCell : Neuron { } public override void UpdateStateIsolated(float3 bias) { // A memorycell does not have an activation function - float3 result = bias; + Vector3 result = bias; int n = 0; //Applying the weight factgors diff --git a/Neuron.cs b/Neuron.cs index a7b56fe..3992323 100644 --- a/Neuron.cs +++ b/Neuron.cs @@ -187,7 +187,7 @@ public class Neuron : Nucleus { public float3 bias = float3(0, 0, 0); public override void UpdateStateIsolated(float3 bias_unused) { - float3 sum = this.bias; + Vector3 sum = this.bias; int n = 0; //Applying the weight factgors diff --git a/Nucleus.cs b/Nucleus.cs index ff61523..dcc30dd 100644 --- a/Nucleus.cs +++ b/Nucleus.cs @@ -18,7 +18,7 @@ public abstract class Nucleus { public Cluster parent { get; set; } protected float3 _outputValue; - public virtual float3 outputValue { + public virtual Vector3 outputValue { get { return _outputValue; } set { //Debug.Log($"{this.name}: stale is reset, was: {this.stale}");