Class SaitouNei
java.lang.Object
pt.ist.phylolib.command.algorithm.Algorithm
pt.ist.phylolib.command.algorithm.nj.NeighbourJoining
pt.ist.phylolib.command.algorithm.nj.SaitouNei
public final class SaitouNei extends NeighbourJoining
Responsible for calculating a
phylogenetic tree from a distance matrix using the Neighbour Joining algorithm by Saitou and Nei.-
Nested Class Summary
Nested classes/interfaces inherited from class pt.ist.phylolib.command.algorithm.nj.NeighbourJoining
NeighbourJoining.ClusterNested classes/interfaces inherited from interface pt.ist.phylolib.command.ICommand
ICommand.IGetter<T> -
Field Summary
-
Constructor Summary
Constructors Constructor Description SaitouNei() -
Method Summary
Modifier and Type Method Description protected doublelambda(NeighbourJoining.Cluster ci, NeighbourJoining.Cluster cj)Gets the proportion of a given cluster according to another.protected doublelength(double distance)Gets the length corresponding to the given distance.protected intweight(NeighbourJoining.Cluster i)Gets the weight of a given cluster.
-
Constructor Details
-
SaitouNei
public SaitouNei()
-
-
Method Details
-
weight
Description copied from class:NeighbourJoiningGets the weight of a given cluster.- Specified by:
weightin classNeighbourJoining- Parameters:
i- the cluster to get the weight from- Returns:
- the weight of the cluster
-
lambda
Description copied from class:NeighbourJoiningGets the proportion of a given cluster according to another.- Specified by:
lambdain classNeighbourJoining- Parameters:
ci- the cluster to get the proportion ofcj- the cluster to take into account in the proportion- Returns:
- the proportion of the cluster according to the other
-
length
protected double length(double distance)Description copied from class:NeighbourJoiningGets the length corresponding to the given distance.- Specified by:
lengthin classNeighbourJoining- Parameters:
distance- the distance to get the length of- Returns:
- the length corresponding to the distance
-