HasFood is now up/down

This commit is contained in:
Pascal Serrarens 2026-02-09 16:55:22 +01:00
parent c2dc2720b0
commit a95c685e1e
4 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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}");