epfl.experiment
Class P1VectorClassSizeAdapter

java.lang.Object
  |
  +--epfl.classifier.VectorClassSizeAdapter
        |
        +--epfl.experiment.P1VectorClassSizeAdapter
All Implemented Interfaces:
VectorReader

public class P1VectorClassSizeAdapter
extends VectorClassSizeAdapter

A double vector class size adapter for problem P1. For each read vector, the class index is decoded and put in currentClassIndex.


Constructor Summary
P1VectorClassSizeAdapter(VectorReader in)
          Creates a new size adapter
 
Methods inherited from class epfl.classifier.VectorClassSizeAdapter
close, currentClassIndex, currentClassRepresentation, nClasses, period, read, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P1VectorClassSizeAdapter

public P1VectorClassSizeAdapter(VectorReader in)
Creates a new size adapter
Parameters:
in - the underlying vector reader The stream size is in.size() - 1