org.strbio.mol.lib
Class ScoreID

java.lang.Object
  extended by org.strbio.mol.lib.ScoreID
All Implemented Interfaces:
ScoreFunction

public class ScoreID
extends java.lang.Object
implements ScoreFunction

A scoring function that returns a non-scaled identity matrix.

Version:
1.0, 4/2/98
Author:
JMC
See Also:
ScoreScaledID

Field Summary
static double EQUAL
           
static double NOTEQUAL
           
 
Constructor Summary
ScoreID()
           
 
Method Summary
 double score(char a, char b)
          This scoring function depends only on the residue type
 double score(Monomer a, Monomer b)
          Returns EQUAL if residue types are the same, otherwise NOTEQUAL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUAL

public static final double EQUAL
See Also:
Constant Field Values

NOTEQUAL

public static final double NOTEQUAL
See Also:
Constant Field Values
Constructor Detail

ScoreID

public ScoreID()
Method Detail

score

public double score(char a,
                    char b)
This scoring function depends only on the residue type


score

public double score(Monomer a,
                    Monomer b)
Returns EQUAL if residue types are the same, otherwise NOTEQUAL.

Specified by:
score in interface ScoreFunction