org.encog.ml.data.buffer
Class BufferedDataSetIterator

java.lang.Object
  extended by org.encog.ml.data.buffer.BufferedDataSetIterator
All Implemented Interfaces:
Iterator<MLDataPair>

public class BufferedDataSetIterator
extends Object
implements Iterator<MLDataPair>

An iterator for the BufferedNeuralDataSet.


Constructor Summary
BufferedDataSetIterator(BufferedMLDataSet theData)
          Construct the iterator.
 
Method Summary
 boolean hasNext()
           
 MLDataPair next()
          
 void remove()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedDataSetIterator

public BufferedDataSetIterator(BufferedMLDataSet theData)
Construct the iterator.

Parameters:
theData - The dataset to iterate over.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<MLDataPair>
Returns:
True if there is are more records to read.

next

public MLDataPair next()

Specified by:
next in interface Iterator<MLDataPair>

remove

public void remove()
Not supported.

Specified by:
remove in interface Iterator<MLDataPair>


Copyright © 2014. All Rights Reserved.