Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/12 15:29:45 (12 years ago)
Author:
gkronber
Message:

#1823 fixed a bug in the Pareto-best solution analyzers for symbolic data analysis. Fixed a minor bug in the calculation of classification thresholds, made a sneaky change in SymbolicExpressionTree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTree.cs

    r7795 r8126  
    2323using System.Collections.Generic;
    2424using System.Drawing;
     25using System.Linq;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    7778    public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesBreadth() {
    7879      if (root == null)
    79         return new SymbolicExpressionTreeNode[0];
     80        return Enumerable.Empty<SymbolicExpressionTreeNode>();
    8081      return root.IterateNodesBreadth();
    8182    }
     
    8384    public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPrefix() {
    8485      if (root == null)
    85         return new SymbolicExpressionTreeNode[0];
     86        return Enumerable.Empty<SymbolicExpressionTreeNode>();
    8687      return root.IterateNodesPrefix();
    8788    }
    8889    public IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPostfix() {
    8990      if (root == null)
    90         return new SymbolicExpressionTreeNode[0];
     91        return Enumerable.Empty<SymbolicExpressionTreeNode>();
    9192      return root.IterateNodesPostfix();
    9293    }
Note: See TracChangeset for help on using the changeset viewer.