예제 #1
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public StaticSynapseSettings(StaticSynapseSettings source)
 {
     WeightCfg = null;
     if (source.WeightCfg != null)
     {
         WeightCfg = source.WeightCfg.DeepClone();
     }
     return;
 }
예제 #2
0
        //Methods
        /// <summary>
        /// See the base.
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            StaticSynapseSettings cmpSettings = obj as StaticSynapseSettings;

            if (!Equals(WeightCfg, cmpSettings.WeightCfg))
            {
                return(false);
            }
            return(true);
        }
예제 #3
0
        /// <summary>
        /// Creates the deep copy instance of this instance
        /// </summary>
        public StaticSynapseSettings DeepClone()
        {
            StaticSynapseSettings clone = new StaticSynapseSettings(this);

            return(clone);
        }