Exemplo n.º 1
0
 public virtual double[] readInput()
 {
     try
     {
         string inputLine = bufferedReader.readLine();
         if (inputLine != null)
         {
             double[] inputBuffer = VectorParser.parseDoubleArray(inputLine);
             return(inputBuffer);
         }
         return(null);
     }
     catch (IOException ex)
     {
         throw new NeurophInputException("Error reading input from stream!", ex);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates new training element with specified input and desired output
 /// vectors specifed as strings
 /// </summary>
 /// <param name="input"> input vector as space separated string </param>
 /// <param name="desiredOutput"> desired output vector as space separated string </param>
 public DataSetRow(string input, string desiredOutput)
 {
     this.input         = VectorParser.parseDoubleArray(input);
     this.desiredOutput = VectorParser.parseDoubleArray(desiredOutput);
 }