Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/09 19:41:58 (15 years ago)
Author:
gkronber
Message:

GP Refactoring #713

  • cleaned code
  • reintegrated GP.Boolean and GP.SantaFe
  • worked on serialization of function trees
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Symbols/ConstantFunctionTree.cs

    r2212 r2216  
    2626
    2727namespace HeuristicLab.GP.StructureIdentification {
    28   public class ConstantFunctionTree : FunctionTreeBase {
    29     private static readonly IList<IFunctionTree> subTrees = new List<IFunctionTree>().AsReadOnly();
     28  public class ConstantFunctionTree : TerminalTreeNode {
    3029    public double Value { get; set; }
    3130
    32     public ConstantFunctionTree(Constant constant) {
    33       Function = constant;
     31    public ConstantFunctionTree(Constant constant) : base(constant){
    3432    }
    3533
    36     protected ConstantFunctionTree(ConstantFunctionTree original) {
    37       Function = original.Function;
     34    protected ConstantFunctionTree(ConstantFunctionTree original) : base(original){
    3835      Value = original.Value;
    39     }
    40 
    41     public override IList<IFunctionTree> SubTrees {
    42       get {
    43         return subTrees;
    44       }
    4536    }
    4637
Note: See TracChangeset for help on using the changeset viewer.