- Timestamp:
- 04/02/10 16:50:07 (15 years ago)
- 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 21 21 22 22 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 23 namespace HeuristicLab.Problems.DataAnalysis. Symbolic.Symbols {23 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols { 24 24 public sealed class Constant : Symbol { 25 25 public override SymbolicExpressionTreeNode CreateTreeNode() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/ConstantTreeNode.cs
r3253 r3258 24 24 using System.Collections.Generic; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 namespace HeuristicLab.Problems.DataAnalysis. Symbolic.Symbols {26 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols { 27 27 [StorableClass] 28 public sealed class ConstantTreeNode : SymbolicExpressionTreeNode { 29 private static List<SymbolicExpressionTreeNode> emptySubTrees = new List<SymbolicExpressionTreeNode>(); 28 public sealed class ConstantTreeNode : SymbolicExpressionTreeTerminalNode { 30 29 public override bool HasLocalParameters { 31 30 get { … … 52 51 return new ConstantTreeNode(this); 53 52 } 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 }69 53 } 70 54 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/Variable.cs
r3253 r3258 21 21 22 22 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 23 namespace HeuristicLab.Problems.DataAnalysis. Symbolic.Symbols {23 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols { 24 24 public sealed class Variable : Symbol { 25 25 public override SymbolicExpressionTreeNode CreateTreeNode() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Symbols/VariableTreeNode.cs
r3253 r3258 24 24 using System.Collections.Generic; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 namespace HeuristicLab.Problems.DataAnalysis. Symbolic.Symbols {26 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Symbols { 27 27 [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 36 30 private double weight; 37 31 [Storable] … … 59 53 return new VariableTreeNode(this); 60 54 } 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 }76 55 } 77 56 }
Note: See TracChangeset
for help on using the changeset viewer.