org.encog.neural.data.csv
Class CSVNeuralDataSet.CSVNeuralIterator

java.lang.Object
  extended by org.encog.neural.data.csv.CSVNeuralDataSet.CSVNeuralIterator
All Implemented Interfaces:
Iterator<NeuralDataPair>
Enclosing class:
CSVNeuralDataSet

public class CSVNeuralDataSet.CSVNeuralIterator
extends Object
implements Iterator<NeuralDataPair>

An iterator designed to read from CSV files.

Author:
jheaton

Constructor Summary
CSVNeuralDataSet.CSVNeuralIterator()
          Default constructor.
 
Method Summary
 void close()
          Close the iterator, and the underlying CSV file.
 boolean hasNext()
          Determine if there is more data to be read.
 NeuralDataPair next()
          Read the next record from the CSV file.
 void remove()
          Removes are not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVNeuralDataSet.CSVNeuralIterator

public CSVNeuralDataSet.CSVNeuralIterator()
Default constructor. Create a new iterator from the parent class.

Method Detail

close

public void close()
Close the iterator, and the underlying CSV file.


hasNext

public boolean hasNext()
Determine if there is more data to be read.

Specified by:
hasNext in interface Iterator<NeuralDataPair>
Returns:
True if there is more data to be read.

next

public NeuralDataPair next()
Read the next record from the CSV file.

Specified by:
next in interface Iterator<NeuralDataPair>
Returns:
The next data pair read.

remove

public void remove()
Removes are not supported.

Specified by:
remove in interface Iterator<NeuralDataPair>


Copyright © 2011. All Rights Reserved.