コード例 #1
0
ファイル: RetainmentSettings.cs プロジェクト: okozelsk/NET
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="density">Specifies the ratio of the neurons having the Retainment property.</param>
 /// <param name="strengthCfg">The configuration of the retainment strength.</param>
 public RetainmentSettings(double density, URandomValueSettings strengthCfg)
 {
     Density     = density;
     StrengthCfg = (URandomValueSettings)strengthCfg.DeepClone();
     Check();
     return;
 }
コード例 #2
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="weightCfg">Synapse's weight settings</param>
 /// <param name="plasticityCfg">Synapse's plasticity configuration</param>
 public SpikingSourceSTExcitatorySettings(URandomValueSettings weightCfg = null,
                                          PlasticitySTExcitatorySettings plasticityCfg = null
                                          )
 {
     WeightCfg     = weightCfg == null ? new URandomValueSettings(DefaultMinWeight, DefaultMaxWeight) : (URandomValueSettings)weightCfg.DeepClone();
     PlasticityCfg = plasticityCfg == null ? new PlasticitySTExcitatorySettings() : (PlasticitySTExcitatorySettings)plasticityCfg.DeepClone();
     Check();
     return;
 }
コード例 #3
0
ファイル: AnalogSourceSettings.cs プロジェクト: okozelsk/NET
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="weightCfg">The configuration of the synapse's weight.</param>
 public AnalogSourceSettings(URandomValueSettings weightCfg = null)
 {
     WeightCfg = weightCfg == null ? new URandomValueSettings(DefaultMinWeight, DefaultMaxWeight) : (URandomValueSettings)weightCfg.DeepClone();
     Check();
     return;
 }