コード例 #1
0
 /* Method: GetTrainOutput
  *  Gets the training output data at the given position
  *
  *  Returns:
  *      An array of output training data at the given position
  *
  *  See also:
  *      <GetTrainInput>
  *
  * This function appears in FANN >= 2.3.0.
  */
 public DataAccessor GetTrainOutput(uint position)
 {
     return(DataAccessor.FromPointer(InternalData.get_train_output(position), (int)OutputCount));
 }
コード例 #2
0
        /* Method: GetTrainInput
         *  Gets the training input data at the given position
         *
         *  Returns:
         *      An array of input training data at the given position
         *
         *  See also:
         *      <GetTrainOutput>, <SetTrainData>
         *
         * This function appears in FANN >= 2.3.0.
         */
        public DataAccessor GetTrainInput(uint position)
        {
            DataAccessor data = DataAccessor.FromPointer(InternalData.get_train_input(position), (int)InputCount);

            return(data);
        }