- Timestamp:
- 06/05/12 10:37:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/FullTreeCreator.cs
r7961 r7964 194 194 throw new InvalidOperationException("No symbols are available for the tree."); 195 195 var weights = possibleSymbols.Select(s => s.InitialFrequency).ToList(); 196 var selectedSymbol = possibleSymbols.SelectRandom( random);196 var selectedSymbol = possibleSymbols.SelectRandom(weights, random); 197 197 var tree = selectedSymbol.CreateTreeNode(); 198 198 if (tree.HasLocalParameters) tree.ResetLocalParameters(random);
Note: See TracChangeset
for help on using the changeset viewer.