Exemple #1
0
 public EncogAnalyst()
 {
     if (0 == 0)
     {
         if (0x7fffffff == 0)
         {
             goto Label_00BE;
         }
         if (0 != 0)
         {
             goto Label_0071;
         }
         this._x594135906c55045c = new AnalystScript();
         goto Label_00E8;
     }
     goto Label_008D;
     Label_0071:
     this.AddCommand(new CmdNormalize(this));
     this.AddCommand(new CmdRandomize(this));
     this.AddCommand(new CmdSegregate(this));
     this.AddCommand(new CmdTrain(this));
     this.AddCommand(new CmdBalance(this));
     this.AddCommand(new CmdSet(this));
     this.AddCommand(new CmdReset(this));
     if (0 != 0)
     {
         goto Label_00E8;
     }
     this.AddCommand(new CmdCluster(this));
     return;
     Label_008D:
     this._x636041b6008d8fc2 = null;
     this._xc8e5edc888efe6f5 = new Dictionary<string, Cmd>();
     this.MaxIteration = -1;
     this.AddCommand(new CmdCreate(this));
     this.AddCommand(new CmdEvaluate(this));
     Label_00BE:
     this.AddCommand(new CmdEvaluateRaw(this));
     if (-2147483648 != 0)
     {
         this.AddCommand(new CmdGenerate(this));
         goto Label_0071;
     }
     return;
     Label_00E8:
     this._xa1a7b04ac1ec3821 = new List<IAnalystListener>();
     if (0 != 0)
     {
         return;
     }
     goto Label_008D;
 }
 /// <summary>
 /// Construct the Encog analyst.
 /// </summary>
 ///
 public EncogAnalyst()
 {
     _script           = new AnalystScript();
     _listeners        = new List <IAnalystListener>();
     _currentQuantTask = null;
     _commands         = new Dictionary <String, Cmd>();
     MaxIteration      = -1;
     AddCommand(new CmdCreate(this));
     AddCommand(new CmdEvaluate(this));
     AddCommand(new CmdEvaluateRaw(this));
     AddCommand(new CmdGenerate(this));
     AddCommand(new CmdNormalize(this));
     AddCommand(new CmdRandomize(this));
     AddCommand(new CmdSegregate(this));
     AddCommand(new CmdTrain(this));
     AddCommand(new CmdBalance(this));
     AddCommand(new CmdSet(this));
     AddCommand(new CmdReset(this));
     AddCommand(new CmdCluster(this));
 }
 /// <summary>
 /// Construct the Encog analyst.
 /// </summary>
 ///
 public EncogAnalyst()
 {
     _script = new AnalystScript();
     _listeners = new List<IAnalystListener>();
     _currentQuantTask = null;
     _commands = new Dictionary<String, Cmd>();
     MaxIteration = -1;
     AddCommand(new CmdCreate(this));
     AddCommand(new CmdEvaluate(this));
     AddCommand(new CmdEvaluateRaw(this));
     AddCommand(new CmdGenerate(this));
     AddCommand(new CmdNormalize(this));
     AddCommand(new CmdRandomize(this));
     AddCommand(new CmdSegregate(this));
     AddCommand(new CmdTrain(this));
     AddCommand(new CmdBalance(this));
     AddCommand(new CmdSet(this));
     AddCommand(new CmdReset(this));
     AddCommand(new CmdCluster(this));
 }