Package org.forester.pccx
Class BranchCountingBasedScoringMethod
- java.lang.Object
-
- org.forester.pccx.BranchCountingBasedScoringMethod
-
- All Implemented Interfaces:
ScoringMethodForExternalNode
- Direct Known Subclasses:
BranchLengthBasedScoringMethod,LogBranchLengthBasedScoringMethod
public class BranchCountingBasedScoringMethod extends java.lang.Object implements ScoringMethodForExternalNode
-
-
Constructor Summary
Constructors Constructor Description BranchCountingBasedScoringMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateScoreForExternalNode(java.util.SortedMap<PhylogenyNode,java.lang.Double> external_node_scores, Phylogeny phylogeny, PhylogenyNode external_node, CoverageCalculationOptions options)This calculates the coverage score for one external node.java.lang.StringgetDesciption()This returns a short description of this scoring methoddoublegetNormalizationFactor(Phylogeny phylogeny)This calculates a normalization factor, so that a normalized score of 1.0 means complete coverage.
-
-
-
Method Detail
-
calculateScoreForExternalNode
public void calculateScoreForExternalNode(java.util.SortedMap<PhylogenyNode,java.lang.Double> external_node_scores, Phylogeny phylogeny, PhylogenyNode external_node, CoverageCalculationOptions options)
Description copied from interface:ScoringMethodForExternalNodeThis calculates the coverage score for one external node.- Specified by:
calculateScoreForExternalNodein interfaceScoringMethodForExternalNode- Parameters:
external_node_scores- SortedMapin which the external node scores are stored (node->score) phylogeny- Phylogeny containing the external nodes to scoreexternal_node- PhylogenyNod for which to calculate the scoreoptions- CoverageCalculationOptions
-
getDesciption
public java.lang.String getDesciption()
Description copied from interface:ScoringMethodForExternalNodeThis returns a short description of this scoring method- Specified by:
getDesciptionin interfaceScoringMethodForExternalNode- Returns:
- short description of this scoring method
-
getNormalizationFactor
public double getNormalizationFactor(Phylogeny phylogeny)
Description copied from interface:ScoringMethodForExternalNodeThis calculates a normalization factor, so that a normalized score of 1.0 means complete coverage.- Specified by:
getNormalizationFactorin interfaceScoringMethodForExternalNode- Parameters:
phylogeny- Phylogeny containing the external nodes to score- Returns:
- normalization factor
-
-