org.aisb.bio.tools
Class SimilarityMatrixComparator
java.lang.Object
org.aisb.bio.tools.MonomerComparator
org.aisb.bio.tools.SimilarityMatrixComparator
- public class SimilarityMatrixComparator
- extends MonomerComparator
This is a simple implementation of a similarity matrix for
comparing monomers. Today, it only works for amino acids.
- Author:
- Doug DeJulio
Field Summary |
int[][] |
value
|
value
public int[][] value
SimilarityMatrixComparator
public SimilarityMatrixComparator()
loadFromFile
public void loadFromFile(File file)
throws IOException
- Initialize the matrix from a given file.
- Parameters:
file
- The file from which to load.
- Throws:
IOException
loadFromFile
public void loadFromFile(String fileName)
throws IOException
- For convenience, initialize the matrix from a file with the given name.
- Parameters:
fileName
- The name of the file from which to load.
- Throws:
IOException
compare
public int compare(Monomer m1,
Monomer m2)
- Specified by:
compare
in class MonomerComparator