コード例 #1
0
ファイル: SynapseATSettings.cs プロジェクト: thild/NET
 //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;
 }
コード例 #2
0
ファイル: SynapseATInputSettings.cs プロジェクト: thild/NET
 /// <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;
 }