Changeset 5014 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeNode.cs
- Timestamp:
- 12/03/10 14:11:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeNode.cs
r4722 r5014 178 178 return Grammar.Symbols.Where(s => Grammar.IsAllowedChild(Symbol, s, argumentIndex)); 179 179 } 180 public IEnumerable<Symbol> GetAllowedSymbols(int argumentIndex, int maxExpressionDepth) { 181 return Grammar.Symbols.Where(s => Grammar.IsAllowedChild(Symbol, s, argumentIndex) && Grammar.GetMinExpressionDepth(s) <= maxExpressionDepth); 182 } 183 180 184 public int GetMinSubtreeCount() { 181 185 return Grammar.GetMinSubtreeCount(Symbol);
Note: See TracChangeset
for help on using the changeset viewer.