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); } }
public void initialize(Range mathCellSizeRange, int testLength) { testConfig = new TestConfiguration(testLength); testConfig.initializePredictionPoints(); dataFunction = RGen.gen.newRandMathCell(mathCellSizeRange, testConfig.argLength); }
public MathCell newRandMathCell(Range mathCellSizeRange, int argLength) { return randCell(RGen.gen.Next(mathCellSizeRange.min, mathCellSizeRange.max), argLength); }