Exemplo n.º 1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="spikingTargetCfg">The configuration of a synapse connecting postsynaptic hidden spiking neuron.</param>
 /// <param name="analogTargetCfg">The configuration of a synapse connecting postsynaptic hidden analog neuron.</param>
 public SynapseSettings(SynapseSTSettings spikingTargetCfg = null,
                        SynapseATSettings analogTargetCfg  = null
                        )
 {
     SpikingTargetCfg = spikingTargetCfg == null ? new SynapseSTSettings() : (SynapseSTSettings)spikingTargetCfg.DeepClone();
     AnalogTargetCfg  = analogTargetCfg == null ? new SynapseATSettings() : (SynapseATSettings)analogTargetCfg.DeepClone();
     Check();
     return;
 }
Exemplo n.º 2
0
 /// <summary>
 /// The deep copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public SynapseSTSettings(SynapseSTSettings source)
     : this(source.InputSynCfg, source.ExcitatorySynCfg, source.InhibitorySynCfg)
 {
     return;
 }