Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/17 00:27:31 (7 years ago)
Author:
pkimmesw
Message:

#2665 LexicaseSelector, Performance improvements, UI Fixes, Debugger only shows used stacks, fixed Debugger stepping, Added vector expressions, ERCOptions,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/ExampleArgumentConverter.cs

    r14777 r14834  
    22  using System;
    33  using System.Collections.Generic;
     4  using System.Globalization;
    45  using System.IO;
    56  using System.Linq;
     
    910    private static readonly char[] ArraySymbolTrim = { '[', ']', '(', ')' };
    1011    public static double[] ConvertDoubles(string input) {
    11       return ConvertMultiple(input, double.Parse);
     12      return ConvertMultiple(input, str => double.Parse(str, CultureInfo.InvariantCulture));
    1213    }
    1314
    1415    public static double ConvertDouble(string input) {
    15       return double.Parse(input);
     16      return double.Parse(input, CultureInfo.InvariantCulture);
    1617    }
    1718
     
    3839    }
    3940
    40     private static string[] trueFormats = new[] { "true", "t", "1" };
    41     private static string[] falseFormats = new[] { "false", "f", "0" };
     41    private static string[] trueFormats = { "true", "t", "1" };
     42    private static string[] falseFormats = { "false", "f", "0" };
    4243
    4344    public static bool ConvertBoolean(string input) {
Note: See TracChangeset for help on using the changeset viewer.