|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aisb.bio.tools.PSSMFitnessFunction
This class implements a fitness function based on a PSSM.
The PSSM must be in a plain text file formatted as discussed in assignment B3.
Constructor Summary | |
PSSMFitnessFunction()
|
Method Summary | |
int |
fitness(Sequence inputSequence)
Calculate the fitness of this sequence. |
int |
getMaximumScore()
Calculate and return the maximum score. |
void |
loadFromFile(java.io.File pssmFile)
|
void |
loadFromFile(java.lang.String pssmFileName)
Load the PSSM from a file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PSSMFitnessFunction()
Method Detail |
public int fitness(Sequence inputSequence)
FitnessFunction
fitness
in interface FitnessFunction
inputSequence
- The sequence under consideration.
public int getMaximumScore()
public void loadFromFile(java.lang.String pssmFileName) throws java.io.IOException
pssmFileName
- The name of the PSSM file.
java.io.IOException
public void loadFromFile(java.io.File pssmFile) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |