コード例 #1
0
ファイル: Population.cs プロジェクト: marler8997/Stocker
        public void initialize(int popSize, Range mathCellSizeRange, int testLength)
        {
            //Create the population array
            this.ind = new Individual[popSize];

            for (int i = 0; i < this.popSize; i++)
            {
                this.ind[i] = new Individual();
                this.ind[i].initialize(mathCellSizeRange, testLength);
            }
        }
コード例 #2
0
ファイル: Individual.cs プロジェクト: marler8997/Stocker
 public void initialize(Range mathCellSizeRange, int testLength)
 {
     testConfig = new TestConfiguration(testLength);
     testConfig.initializePredictionPoints();
     dataFunction = RGen.gen.newRandMathCell(mathCellSizeRange, testConfig.argLength);
 }
コード例 #3
0
ファイル: RGen.cs プロジェクト: marler8997/Stocker
 public MathCell newRandMathCell(Range mathCellSizeRange, int argLength)
 {
     return randCell(RGen.gen.Next(mathCellSizeRange.min, mathCellSizeRange.max), argLength);
 }