private static DataSet run(RandomizedProjectionFilter rca, DataSet original) { System.out.println("The projection matrix"); System.out.println(rca.getProjection()); DataSet transformed = original.copy(); rca.filter(transformed); return transformed; }
private static DataSet reconstruct(RandomizedProjectionFilter rca, DataSet transformed) { DataSet reconstructed = transformed.copy(); rca.reverse(reconstructed); return reconstructed; }