- Timestamp:
- 07/29/09 19:07:21 (15 years ago)
- Location:
- branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3
- Files:
-
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Addition.cs
r2202 r2211 42 42 : base() { 43 43 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 44 Min Arity= 2;45 Max Arity= 3;44 MinSubTrees = 2; 45 MaxSubTrees = 3; 46 46 } 47 47 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/And.cs
r2202 r2211 38 38 public And() 39 39 : base() { 40 Min Arity = 2; MaxArity= 3;40 MinSubTrees = 2; MaxSubTrees = 3; 41 41 } 42 42 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Average.cs
r2202 r2211 36 36 public Average() 37 37 : base() { 38 Min Arity = 2; MaxArity= 3;38 MinSubTrees = 2; MaxSubTrees = 3; 39 39 } 40 40 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/ConstantFunctionTree.cs
r2210 r2211 29 29 namespace HeuristicLab.GP.StructureIdentification { 30 30 public class ConstantFunctionTree : FunctionTreeBase { 31 private static readonly IList<IFunctionTree> subTrees = new List<IFunctionTree>().AsReadOnly(); 31 32 public double Value { get; set; } 32 33 33 public ConstantFunctionTree(Constant constant) 34 : base(constant) {34 public ConstantFunctionTree(Constant constant) { 35 Function = constant; 35 36 } 36 37 37 protected ConstantFunctionTree(ConstantFunctionTree original) 38 : base(original) {38 protected ConstantFunctionTree(ConstantFunctionTree original) { 39 Function = original.Function; 39 40 Value = original.Value; 41 } 42 43 public override IList<IFunctionTree> SubTrees { 44 get { 45 return subTrees; 46 } 40 47 } 41 48 -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/FunctionLibraryInjector.cs
r2210 r2211 238 238 239 239 private void SetAllowedSubOperators(IFunction f, List<IFunction> gs) { 240 for (int i = 0; i < f.Max Arity; i++) {240 for (int i = 0; i < f.MaxSubTrees; i++) { 241 241 SetAllowedSubOperators(f, i, gs); 242 242 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/HL3TreeEvaluator.cs
r2202 r2211 34 34 /// Not thread-safe! 35 35 /// </summary> 36 public class BakedTreeEvaluator : TreeEvaluatorBase {36 public class HL3TreeEvaluator : TreeEvaluatorBase { 37 37 38 38 -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/HeuristicLab.GP.StructureIdentification-3.3.csproj
r2210 r2211 85 85 <Compile Include="And.cs" /> 86 86 <Compile Include="Average.cs" /> 87 <Compile Include="BakedTreeEvaluator.cs" />88 87 <Compile Include="Constant.cs" /> 89 88 <Compile Include="AlgorithmBase.cs" /> 90 89 <Compile Include="ConstantFunctionTree.cs" /> 91 90 <Compile Include="Evaluators\SimpleGPEvaluatorBase.cs" /> 91 <Compile Include="HL3TreeEvaluator.cs" /> 92 92 <Compile Include="VariableFunctionTree.cs" /> 93 93 <Compile Include="TreeEvaluatorBase.cs" /> -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/IfThenElse.cs
r2202 r2211 38 38 public IfThenElse() 39 39 : base() { 40 Min Arity = 3; MaxArity= 3;40 MinSubTrees = 3; MaxSubTrees = 3; 41 41 } 42 42 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Multiplication.cs
r2202 r2211 43 43 : base() { 44 44 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 45 Min Arity = 2; MaxArity= 3;45 MinSubTrees = 2; MaxSubTrees = 3; 46 46 } 47 47 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Or.cs
r2202 r2211 37 37 public Or() 38 38 : base() { 39 Min Arity = 2; MaxArity= 3;39 MinSubTrees = 2; MaxSubTrees = 3; 40 40 } 41 41 } -
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/VariableFunctionTree.cs
r2210 r2211 29 29 namespace HeuristicLab.GP.StructureIdentification { 30 30 public class VariableFunctionTree : FunctionTreeBase { 31 private static readonly IList<IFunctionTree> subTrees = new List<IFunctionTree>().AsReadOnly(); 31 32 public double Weight { get; set; } 32 33 public string VariableName { get; set; } 33 34 public int SampleOffset { get; set; } 34 35 35 public VariableFunctionTree(Variable variable) 36 : base(variable) {36 public VariableFunctionTree(Variable variable) { 37 Function = variable; 37 38 } 38 39 39 protected VariableFunctionTree(VariableFunctionTree original) 40 : base(original) {40 protected VariableFunctionTree(VariableFunctionTree original) { 41 Function = original.Function; 41 42 Weight = original.Weight; 42 43 VariableName = original.VariableName; 43 44 SampleOffset = original.SampleOffset; 45 } 46 47 public override IList<IFunctionTree> SubTrees { 48 get { 49 return subTrees; 50 } 44 51 } 45 52
Note: See TracChangeset
for help on using the changeset viewer.