|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.core.FitnessFunction
gov.nasa.javaGenes.graph.VertexPairsDistanceSimilarity
fitness is the distance from a target graph. All-pairs-shortest-path comparison using the Tanimoto coefficient is used.
apsp
,
Tanimoto
,
Graph.distanceFrom(gov.nasa.javaGenes.core.Evolvable)
,
Serialized FormField Summary | |
protected Graph |
target
target graph |
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunction |
name |
Constructor Summary | |
VertexPairsDistanceSimilarity()
set the target to a test molecule |
|
VertexPairsDistanceSimilarity(Graph graph)
|
Method Summary | |
Fitness |
evaluateFitness(Evolvable evolvable)
|
void |
makeFiles()
write out the target as file target.mol |
java.lang.String |
toString()
|
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunction |
bestDouble, getFunction, getName, getNameArray, isNewFunction, numberOfObjectives, report, setName, worstDouble |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Graph target
Constructor Detail |
public VertexPairsDistanceSimilarity(Graph graph)
graph
- the targetpublic VertexPairsDistanceSimilarity()
Method Detail |
public Fitness evaluateFitness(Evolvable evolvable)
evaluateFitness
in class FitnessFunction
evolvable
- must be a Graph
Graph
public java.lang.String toString()
public void makeFiles()
makeFiles
in class FitnessFunction
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |