Configuration conf = getConfiguration();
Collection<Double> newEigenValues = Lists.newArrayList();
int i = 0;
for (VectorWritable value : new SequenceFileValueIterable<VectorWritable>(cleanEigenvectors, conf)) {
NamedVector v = (NamedVector) value.get();
eigenVectors.assignRow(i, v);
log.info(v.getName());
if (EigenVector.getCosAngleError(v.getName()) < 1.0e-3) {
eigenvalues.add(EigenVector.getEigenValue(v.getName()));
}
i++;
}
assertEquals("number of clean eigenvectors", 3, i);
i = 0;
for (VectorWritable value : new SequenceFileValueIterable<VectorWritable>(cleanEigenvectors2, conf)) {
NamedVector v = (NamedVector) value.get();
log.info(v.getName());
eigenVectors2.assignRow(i, v);
newEigenValues.add(EigenVector.getEigenValue(v.getName()));
i++;
}
Collection<Integer> oldEigensFound = Lists.newArrayList();
for (int row = 0; row < eigenVectors.numRows(); row++) {