Changeset 308
- Timestamp:
- 06/09/08 11:24:32 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Functions
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Functions/BakedTreeEvaluator.cs
r266 r308 87 87 return sum; 88 88 } 89 case EvaluatorSymbolTable.SUB STRACTION: {89 case EvaluatorSymbolTable.SUBTRACTION: { 90 90 if(arity == 1) { 91 91 return -EvaluateBakedCode(); -
trunk/sources/HeuristicLab.Functions/FunctionView.cs
r185 r308 202 202 } 203 203 204 public void Visit(Sub straction substraction) {204 public void Visit(Subtraction substraction) { 205 205 name = "-"; 206 206 } -
trunk/sources/HeuristicLab.Functions/HeuristicLab.Functions.csproj
r260 r308 80 80 <Compile Include="Exponential.cs" /> 81 81 <Compile Include="Sqrt.cs" /> 82 <Compile Include="Substraction.cs" />83 82 <Compile Include="Power.cs" /> 84 83 <Compile Include="Division.cs" /> 84 <Compile Include="Subtraction.cs" /> 85 85 <Compile Include="SymbolTable.cs" /> 86 86 <Compile Include="Tangens.cs" /> -
trunk/sources/HeuristicLab.Functions/IFunctionVisitor.cs
r2 r308 46 46 void Visit(Sinus sinus); 47 47 void Visit(Sqrt sqrt); 48 void Visit(Sub straction substraction);48 void Visit(Subtraction substraction); 49 49 void Visit(Tangens tangens); 50 50 void Visit(Variable variable); -
trunk/sources/HeuristicLab.Functions/ModelAnalyzerExporter.cs
r185 r308 93 93 } 94 94 95 public void Visit(Sub straction substraction) {96 VisitFunction("Sub straction[0]", substraction);95 public void Visit(Subtraction substraction) { 96 VisitFunction("Subtraction[0]", substraction); 97 97 } 98 98 -
trunk/sources/HeuristicLab.Functions/Subtraction.cs
r307 r308 30 30 31 31 namespace HeuristicLab.Functions { 32 public sealed class Sub straction : FunctionBase {32 public sealed class Subtraction : FunctionBase { 33 33 public override string Description { 34 34 get { 35 return @"Sub stracts the results of sub-tree 2..n from the result of the first sub-tree.35 return @"Subtracts the results of sub-tree 2..n from the result of the first sub-tree. 36 36 (- 3) => -3 37 37 (- 2 3) => -1 … … 40 40 } 41 41 42 public Sub straction()42 public Subtraction() 43 43 : base() { 44 44 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) -
trunk/sources/HeuristicLab.Functions/SymbolTable.cs
r266 r308 48 48 public const int SINUS = 10180; 49 49 public const int SQRT = 10190; 50 public const int SUB STRACTION = 10200;50 public const int SUBTRACTION = 10200; 51 51 public const int TANGENS = 10210; 52 52 public const int VARIABLE = 10220; … … 87 87 staticTypes[typeof(Sinus)] = SINUS; 88 88 staticTypes[typeof(Sqrt)] = SQRT; 89 staticTypes[typeof(Sub straction)] = SUBSTRACTION;89 staticTypes[typeof(Subtraction)] = SUBTRACTION; 90 90 staticTypes[typeof(Tangens)] = TANGENS; 91 91 staticTypes[typeof(Variable)] = VARIABLE;
Note: See TracChangeset
for help on using the changeset viewer.