Пример #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);
        }