Ejemplo n.º 1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="spectralRadius">Spectral radius</param>
 /// <param name="inputSynCfg">Input synapse settings</param>
 /// <param name="indifferentSynCfg">Indifferent synapse settings</param>
 public SynapseATSettings(double spectralRadius = DefaultSpectralRadiusNum,
                          SynapseATInputSettings inputSynCfg             = null,
                          SynapseATIndifferentSettings indifferentSynCfg = null
                          )
 {
     SpectralRadius    = spectralRadius;
     InputSynCfg       = inputSynCfg == null ? new SynapseATInputSettings() : (SynapseATInputSettings)inputSynCfg.DeepClone();
     IndifferentSynCfg = indifferentSynCfg == null ? new SynapseATIndifferentSettings() : (SynapseATIndifferentSettings)indifferentSynCfg.DeepClone();
     Check();
     return;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public SynapseATInputSettings(SynapseATInputSettings source)
     : this(source.DelayMethod, source.MaxDelay, source.AnalogSourceCfg, source.SpikingSourceCfg)
 {
     return;
 }