- Timestamp:
- 10/11/08 18:35:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Functions/BakedTreeEvaluator.cs
r523 r642 40 40 public int arity; 41 41 public int symbol; 42 public IFunction function; 42 43 } 43 44 … … 79 80 break; 80 81 } 82 case EvaluatorSymbolTable.UNKNOWN: { 83 instr.function = f.functionType; 84 break; 85 } 81 86 } 82 87 return instr; … … 93 98 int i = 1; 94 99 while(i > 0) { 95 i +=codeArr[PC++].arity;100 i += codeArr[PC++].arity; 96 101 i--; 97 102 } … … 247 252 return Math.Abs(x - y); 248 253 } 249 case EvaluatorSymbolTable.UNKNOWN: 254 case EvaluatorSymbolTable.UNKNOWN: { // evaluate functions which are not statically defined directly 255 return currInstr.function.Apply(); 256 } 250 257 default: { 251 258 throw new NotImplementedException();
Note: See TracChangeset
for help on using the changeset viewer.