예제 #1
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="presynapticNeuron">The presynaptic neuron.</param>
 /// <param name="dynamicsCfg">The configuration of the dynamics.</param>
 public LinearEfficacy(INeuron presynapticNeuron, LinearDynamicsSettings dynamicsCfg)
 {
     _presynapticNeuronOutputData = presynapticNeuron.OutputData;
     _dynamicsCfg = (LinearDynamicsSettings)dynamicsCfg.DeepClone();
     Reset();
     return;
 }
예제 #2
0
파일: LinearEfficacy.cs 프로젝트: thild/NET
 //Constructor
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="sourceNeuron">Source neuron</param>
 /// <param name="dynamicsCfg">Dynamics configuration</param>
 public LinearEfficacy(INeuron sourceNeuron, LinearDynamicsSettings dynamicsCfg)
 {
     _sourceNeuronOutputData = sourceNeuron.OutputData;
     _dynamicsCfg            = (LinearDynamicsSettings)dynamicsCfg.DeepClone();
     Reset();
     return;
 }
예제 #3
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public LinearDynamicsSettings(LinearDynamicsSettings source)
     : this(source.Alpha, source.Beta, source.InitialEfficacy)
 {
     return;
 }