epfl.io
Class FeatureSeparator

java.lang.Object
  |
  +--epfl.io.FeatureSeparator

public class FeatureSeparator
extends java.lang.Object

A double vector feature (component) separator. There is a stream for each vector component.


Constructor Summary
FeatureSeparator(VectorReader in)
          Creates a feature separator on the underlying vector reader
 
Method Summary
 VectorReader getVectorReader(int index)
          Returns a reference on the given vector reader
 int nStreams()
          Returns the number of streams getting out.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureSeparator

public FeatureSeparator(VectorReader in)
Creates a feature separator on the underlying vector reader
Parameters:
in - the underlying vector reader
Method Detail

getVectorReader

public VectorReader getVectorReader(int index)
Returns a reference on the given vector reader
Parameters:
index - 0..nStreams-1
Returns:
null if the stream is closed

nStreams

public int nStreams()
Returns the number of streams getting out. It equals the vector size.