Changeset 14898 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite
- Timestamp:
- 04/28/17 23:33:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views/ViewHelper.cs
r14875 r14898 3 3 public static string StringifyInput(ExampleArgumentType type, Example example, string valueSeparator) { 4 4 switch (type) { 5 case ExampleArgumentType.Integer: 6 case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.InputInteger);5 case ExampleArgumentType.Integer: return string.Join(valueSeparator, example.InputInteger); 6 //case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.InputInteger); 7 7 8 case ExampleArgumentType.Float: 9 case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.InputFloat);8 case ExampleArgumentType.Float: return string.Join(valueSeparator, example.InputFloat); 9 //case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.InputFloat); 10 10 11 11 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.InputBoolean); 12 12 case ExampleArgumentType.Char: return string.Join(valueSeparator, example.InputChar); 13 13 14 case ExampleArgumentType.String: 15 case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.InputString);14 case ExampleArgumentType.String: return string.Join(valueSeparator, example.InputString); 15 //case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.InputString); 16 16 default: return string.Empty; 17 17 } … … 20 20 public static string StringifyOutput(ExampleArgumentType type, Example example, string valueSeparator) { 21 21 switch (type) { 22 case ExampleArgumentType.Integer: 23 case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.OutputInteger);22 case ExampleArgumentType.Integer: return string.Join(valueSeparator, example.OutputInteger); 23 //case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.OutputIntegerVector); 24 24 25 case ExampleArgumentType.Float: 26 case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.OutputFloat);25 case ExampleArgumentType.Float: return string.Join(valueSeparator, example.OutputFloat); 26 //case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.OutputFloat); 27 27 28 28 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.OutputBoolean); 29 29 case ExampleArgumentType.Char: return string.Join(valueSeparator, example.OutputChar); 30 30 31 case ExampleArgumentType.String: 32 case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.OutputString);31 case ExampleArgumentType.String: return string.Join(valueSeparator, example.OutputString); 32 //case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.OutputString); 33 33 default: return string.Empty; 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.