Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/10 16:50:07 (15 years ago)
Author:
gkronber
Message:

Moved general set of symbols and evaluator into Encodings.SymbolicExpressionTreeEncoding. #937 (Data types and operators for symbolic expression tree encoding)

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols
Files:
4 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/Constant.cs

    r3253 r3258  
    2121
    2222using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
     23namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols {
    2424  public sealed class Constant : Symbol {
    2525    public override SymbolicExpressionTreeNode CreateTreeNode() {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/ConstantTreeNode.cs

    r3253 r3258  
    2424using System.Collections.Generic;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
     26namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols {
    2727  [StorableClass]
    28   public sealed class ConstantTreeNode : SymbolicExpressionTreeNode {
    29     private static List<SymbolicExpressionTreeNode> emptySubTrees = new List<SymbolicExpressionTreeNode>();
     28  public sealed class ConstantTreeNode : SymbolicExpressionTreeTerminalNode {
    3029    public override bool HasLocalParameters {
    3130      get {
     
    5251      return new ConstantTreeNode(this);
    5352    }
    54 
    55     protected override void AddSubTree(SymbolicExpressionTreeNode tree) {
    56       throw new NotSupportedException();
    57     }
    58     protected override void InsertSubTree(int index, SymbolicExpressionTreeNode tree) {
    59       throw new NotSupportedException();
    60     }
    61     protected override void RemoveSubTree(int index) {
    62       throw new NotSupportedException();
    63     }
    64     public override System.Collections.Generic.IList<SymbolicExpressionTreeNode> SubTrees {
    65       get {
    66         return emptySubTrees;
    67       }
    68     }
    6953  }
    7054}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/Variable.cs

    r3253 r3258  
    2121
    2222using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
     23namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols {
    2424  public sealed class Variable : Symbol {
    2525    public override SymbolicExpressionTreeNode CreateTreeNode() {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/VariableTreeNode.cs

    r3253 r3258  
    2424using System.Collections.Generic;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols {
     26namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols {
    2727  [StorableClass]
    28   public sealed class VariableTreeNode : SymbolicExpressionTreeNode {
    29     private static List<SymbolicExpressionTreeNode> emptySubTrees = new List<SymbolicExpressionTreeNode>();
    30     public override bool HasLocalParameters {
    31       get {
    32         return true;
    33       }
    34     }
    35 
     28  public sealed class VariableTreeNode : SymbolicExpressionTreeTerminalNode {
     29   
    3630    private double weight;
    3731    [Storable]
     
    5953      return new VariableTreeNode(this);
    6054    }
    61 
    62     protected override void AddSubTree(SymbolicExpressionTreeNode tree) {
    63       throw new NotSupportedException();
    64     }
    65     protected override void InsertSubTree(int index, SymbolicExpressionTreeNode tree) {
    66       throw new NotSupportedException();
    67     }
    68     protected override void RemoveSubTree(int index) {
    69       throw new NotSupportedException();
    70     }
    71     public override System.Collections.Generic.IList<SymbolicExpressionTreeNode> SubTrees {
    72       get {
    73         return emptySubTrees;
    74       }
    75     }
    7655  }
    7756}
Note: See TracChangeset for help on using the changeset viewer.