public class TreeFitness
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
BehaviorCounter |
behaviorCounter
More detailed information about the alignment between log and tree.
|
gnu.trove.map.hash.TObjectDoubleHashMap<TreeFitnessInfo> |
fitnessValues
A map of fitness values for the different dimensions
|
static double |
NOVALUE |
Constructor and Description |
---|
TreeFitness(int treeSize) |
Modifier and Type | Method and Description |
---|---|
int |
getConfidenceLevel() |
int |
getInGeneration() |
TreeFitnessInfo |
getOverallFitnessInfo()
Returns the
TreeFitnessInfo of the fitness measure that set the
overall fitness value. |
double |
getOverallFitnessValue()
Returns the overall fitness value for this tree.
|
boolean |
isReliable()
Returns TRUE if the fitness values are reliable but FALSE if the alignment calculation was aborted
|
boolean |
isSet() |
void |
setConfidenceLevel(int confidenceLevel) |
void |
setInGeneration(int inGeneration) |
void |
setOverallFitness(TreeFitnessInfo fitnessInfo,
double fitnessValue)
Sets or updates the overall fitness for this tree.
|
void |
setReliable(boolean isReliable)
Set to FALSE if the results stored in the fitness object are not reliable because calculations were aborted (f.i.
|
java.lang.String |
toString() |
public static double NOVALUE
public BehaviorCounter behaviorCounter
public gnu.trove.map.hash.TObjectDoubleHashMap<TreeFitnessInfo> fitnessValues
public boolean isSet()
public java.lang.String toString()
toString
in class java.lang.Object
public void setOverallFitness(TreeFitnessInfo fitnessInfo, double fitnessValue)
fitnessInfo
- The TreeFitnessInfo
object of the fitness measure that
set the overall valuefitnessValue
- The actual overall fitness valuepublic double getOverallFitnessValue()
public TreeFitnessInfo getOverallFitnessInfo()
TreeFitnessInfo
of the fitness measure that set the
overall fitness value.public boolean isReliable()
public void setReliable(boolean isReliable)
isReliable
- the isReliable to setpublic int getInGeneration()
public void setInGeneration(int inGeneration)
inGeneration
- the inGeneration to setpublic int getConfidenceLevel()
public void setConfidenceLevel(int confidenceLevel)