Encog.Persist.EncogFileSection.ParseDoubleArray C# (CSharp) Method

ParseDoubleArray() public static method

Parse a double array from a name-value collection of params.
public static ParseDoubleArray ( String>.IDictionary paras, String name ) : double[]
paras String>.IDictionary The name-value pairs.
name String The name to parse.
return double[]
        public static double[] ParseDoubleArray(IDictionary<String, String> paras,
                                                String name)
        {
            String v = null;
            try
            {
                v = paras[name];
                if (v == null)
                {
                    throw new PersistError("Missing property: " + name);
                }

                return NumberList.FromList(CSVFormat.EgFormat, v);
            }
            catch (FormatException )
            {
                throw new PersistError("Field: " + name + ", "
                                       + "invalid integer: " + v);
            }
        }