Changeset 2566 for trunk/sources/HeuristicLab.GP.Operators
- Timestamp:
- 12/21/09 16:14:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.Operators/3.3/Initialization/ProbabilisticTreeCreator.cs
r2560 r2566 57 57 58 58 public static IFunctionTree Create(IRandom random, FunctionLibrary funLib, int minSize, int maxSize, int maxHeight) { 59 int treeSize = random.Next(minSize, maxSize + 1);59 int treeSize = random.Next(minSize, maxSize); 60 60 IFunctionTree root; 61 61 int tries = 0; … … 65 65 if (tries++ >= MAX_TRIES) { 66 66 // try a different size 67 treeSize = random.Next(minSize, maxSize + 1);67 treeSize = random.Next(minSize, maxSize); 68 68 tries = 0; 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.