public interface Transform
Matrix
transformations. These tranformations should
support both a Matrix
and a serialized Matrix
stored in a
File
, in one of the supported matrix formats. Implementations are
strongly encouraged to implement the toString
method, as many SemanticSpace
implementations will use this when
serializing.Modifier and Type | Method and Description |
---|---|
File |
transform(File inputMatrixFile,
MatrixIO.Format format)
Transforms the matrix in the file using the an implemented method and
returns a temporary file containing the result.
|
void |
transform(File inputMatrixFile,
MatrixIO.Format inputFormat,
File outputMatrixFile)
Transforms the input matrix using the implemented method and writes the
result to the file for the output matrix.
|
Matrix |
transform(Matrix input)
Returns a transformed matrix based on the given matrix.
|
Matrix |
transform(Matrix input,
Matrix output)
Returns a transformed matrix based on the given matrix.
|
File transform(File inputMatrixFile, MatrixIO.Format format) throws IOException
inputMatrixFile
- a file containing a matrix in the specified formatformat
- the format of the matrixIOException
- if any error occurs while reading the input matrix or
writing the output matrixvoid transform(File inputMatrixFile, MatrixIO.Format inputFormat, File outputMatrixFile) throws IOException
inputMatrixFile
- a file containing a matrix in the specified formatinputFormat
- the format of the input matrix, and the format in
which the output matrix will be writtenoutputMatrixFile
- the file to which the transformed matrix will be
writtenIOException
- if any error occurs while reading the input matrix or
writing the output matrixMatrix transform(Matrix input)
input
- the matrix to be transformedinput
after it has been transformedCopyright © 2012. All Rights Reserved.