/** * {@inheritDoc} */ public Matrix transform(Matrix matrix) { return transform(matrix, matrix); }
/** * {@inheritDoc} */ protected GlobalTransform getTransform(File input, MatrixIO.Format format) { return new FilteredGlobalTransform(base.getTransform(input, format)); }
/** * {@inheritDoc} */ protected GlobalTransform getTransform(Matrix matrix) { return new FilteredGlobalTransform(base.getTransform(matrix)); }
/** * {@inheritDoc} */ public void transform(File inputMatrixFile, MatrixIO.Format format, File outputMatrixFile) throws IOException { GlobalTransform transform = getTransform(inputMatrixFile, format); FileTransformer transformer = MatrixIO.fileTransformer(format); transformer.transform(inputMatrixFile, outputMatrixFile, transform); }
/** * {@inheritDoc} */ public Matrix transform(Matrix matrix) { return transform(matrix, matrix); }
/** * {@inheritDoc} */ public void transform(File inputMatrixFile, MatrixIO.Format format, File outputMatrixFile) throws IOException { transform = getTransform(inputMatrixFile, format); FileTransformer transformer = MatrixIO.fileTransformer(format); transformer.transform(inputMatrixFile, outputMatrixFile, transform); }
/** * {@inheritDoc} */ public File transform(File inputMatrixFile, MatrixIO.Format format) throws IOException { // create a temp file for the output File output = File.createTempFile( inputMatrixFile.getName() + ".matrix-transform", ".dat"); transform(inputMatrixFile, format, output); return output; }
"input matrix"); transform = getTransform(matrix);
/** * {@inheritDoc} */ public File transform(File inputMatrixFile, MatrixIO.Format format) throws IOException { // create a temp file for the output File output = File.createTempFile( inputMatrixFile.getName() + ".matrix-transform", ".dat"); output.deleteOnExit(); transform(inputMatrixFile, format, output); return output; }
"input matrix"); GlobalTransform transform = getTransform(matrix);