using System;
using UnityEngine;
namespace NanoBrain {
///
/// A Synapse connects the ouput of a Neuron to another Neuron
///
[Serializable]
public class Synapse {
///
/// The neuron from which input is received
///
[SerializeReference]
public Neuron neuron;
///
/// The weight value to apply to the Neuron input
///
public float weight;
///
/// Create a new Synapse
///
/// The neuron from which input is received
/// The weight value to apply to the Neuron input
public Synapse(Neuron nucleus, float weight = 1.0f) {
this.neuron = nucleus;
this.weight = weight;
}
}
}