org.encog.neural.data.xml
Class XMLNeuralDataSet.XMLNeuralIterator

java.lang.Object
  extended by org.encog.neural.data.xml.XMLNeuralDataSet.XMLNeuralIterator
All Implemented Interfaces:
Iterator<NeuralDataPair>
Enclosing class:
XMLNeuralDataSet

public class XMLNeuralDataSet.XMLNeuralIterator
extends Object
implements Iterator<NeuralDataPair>

An iterator designed to read from XML files.

Author:
jheaton

Constructor Summary
XMLNeuralDataSet.XMLNeuralIterator()
          Construct an iterator to read the XML data.
 
Method Summary
 boolean hasNext()
          Is there any more data to read?
 NeuralDataPair next()
          Read the next training set item.
 void remove()
          Remove this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNeuralDataSet.XMLNeuralIterator

public XMLNeuralDataSet.XMLNeuralIterator()
Construct an iterator to read the XML data.

Method Detail

hasNext

public boolean hasNext()
Is there any more data to read?

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

next

public NeuralDataPair next()
Read the next training set item.

Specified by:
next in interface Iterator<NeuralDataPair>
Returns:
The next training set item.

remove

public void remove()
Remove this iterator.

Specified by:
remove in interface Iterator<NeuralDataPair>


Copyright © 2011. All Rights Reserved.