epfl.io
Interface VectorReader

All Known Subinterfaces:
Classifier, Pdf
All Known Implementing Classes:
TagVectorReader, VectorReplace, VectorSimplePeriodReader, VectorSizeAdapter, VectorSniffer, VectorUnionReader, VectorUnknownPeriodReader, VectorPriorProb, VectorPCATransform, VectorNormalize, VectorClassSizeAdapter2, VectorClassSizeAdapter

public interface VectorReader

A double vector input stream


Method Summary
 void close()
          Closes the stream
 int period()
          Returns the stream period
 double[] read()
          Reads a vector in stream
 int size()
          Returns the stream size (vector size)
 

Method Detail

read

public double[] read()
              throws java.io.IOException
Reads a vector in stream
Throws:
java.io.IOException - if the stream is closed or if it is unable to read size doubles

size

public int size()
Returns the stream size (vector size)

period

public int period()
Returns the stream period
Returns:
0 if the stream is not periodic

close

public void close()
           throws java.io.IOException
Closes the stream
Throws:
java.io.IOException - an IO error occurs