/// <summary>
 /// Deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public MackeyGlassGeneratorSettings(MackeyGlassGeneratorSettings source)
 {
     Tau = source.Tau;
     B   = source.B;
     C   = source.C;
     return;
 }
        //Methods
        /// <summary>
        /// See the base.
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            MackeyGlassGeneratorSettings cmpSettings = obj as MackeyGlassGeneratorSettings;

            if (Tau != cmpSettings.Tau ||
                B != cmpSettings.B ||
                C != cmpSettings.C
                )
            {
                return(false);
            }
            return(true);
        }
Exemple #3
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="settings">Configuration</param>
 public MackeyGlassGenerator(MackeyGlassGeneratorSettings settings)
 {
     _settings = settings.DeepClone();
     Reset();
     return;
 }
Exemple #4
0
 /// <summary>
 /// The deep copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public MackeyGlassGeneratorSettings(MackeyGlassGeneratorSettings source)
     : this(source.Tau, source.B, source.C)
 {
     return;
 }
Exemple #5
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="cfg">The configuration.</param>
 public MackeyGlassGenerator(MackeyGlassGeneratorSettings cfg)
 {
     _cfg = (MackeyGlassGeneratorSettings)cfg.DeepClone();
     Reset();
     return;
 }