Changeset 6299 for branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols
- Timestamp:
- 05/26/11 15:11:48 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/GroupSymbol.cs
r6296 r6299 59 59 InitialFrequency = 0.0; 60 60 } 61 62 public IEnumerable<ISymbol> Flatten() { 63 return symbols.Union(symbols.OfType<GroupSymbol>().SelectMany(g => g.Flatten())); 64 } 61 65 } 62 66 } -
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Symbols/Symbol.cs
r6296 r6299 38 38 if (value != initialFrequency) { 39 39 initialFrequency = value; 40 if (initialFrequency.IsAlmost(0.0)) enabled = false;41 40 OnChanged(EventArgs.Empty); 42 41 }
Note: See TracChangeset
for help on using the changeset viewer.