|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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(File pssmFile)
|
void |
loadFromFile(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 FitnessFunctioninputSequence - The sequence under consideration.
public int getMaximumScore()
public void loadFromFile(String pssmFileName)
throws IOException
pssmFileName - The name of the PSSM file.
IOException
public void loadFromFile(File pssmFile)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||