NCBI C++ ToolKit
Classes | Enumerations | Functions | Variables
cuSeqTreeAlg.hpp File Reference
#include <algo/structure/cd_utils/cuSeqTreeStream.hpp>
#include <algo/structure/cd_utils/cuDistmat.hpp>
+ Include dependency graph for cuSeqTreeAlg.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  TreeAlgorithm
 

Enumerations

enum  ETreeMethod { eNoTreeMethod =0 , eSLC =1 , eNJ =2 }
 

Functions

 USING_SCOPE (objects)
 
string GetTreeAlgorithmName (ETreeMethod algorithm)
 
void MidpointRootSeqTree (const SeqTree &oldTree, SeqTree &newTree)
 
bool GetMaxPath (const SeqTree &atree, double &dMax, SeqTree::iterator &end1, SeqTree::iterator &end2)
 
bool GetMaxPath (const SeqTree::iterator &cursor, double &dMax, double &dBranch1, SeqTree::iterator &end1, double &dBranch2, SeqTree::iterator &end2)
 

Variables

const int NUMBER_OF_TREE_ALGORITHMS = 2
 
const string TREE_ALGORITHM_NAMES []
 
const ETreeMethod GLOBAL_DEFAULT_ALGORITHM = eNJ
 
const double RESET_WITH_TINY_DISTANCE = 0.0001
 

Enumeration Type Documentation

◆ ETreeMethod

Enumerator
eNoTreeMethod 
eSLC 
eNJ 

Definition at line 53 of file cuSeqTreeAlg.hpp.

Function Documentation

◆ GetMaxPath() [1/2]

bool GetMaxPath ( const SeqTree atree,
double &  dMax,
SeqTree::iterator end1,
SeqTree::iterator end2 
)

◆ GetMaxPath() [2/2]

bool GetMaxPath ( const SeqTree::iterator cursor,
double &  dMax,
double &  dBranch1,
SeqTree::iterator end1,
double &  dBranch2,
SeqTree::iterator end2 
)

◆ GetTreeAlgorithmName()

string GetTreeAlgorithmName ( ETreeMethod  algorithm)

Definition at line 47 of file cuSeqTreeNj.cpp.

References TREE_ALGORITHM_NAMES.

Referenced by SeqTreeAPI::layoutSeqTree().

◆ MidpointRootSeqTree()

void MidpointRootSeqTree ( const SeqTree oldTree,
SeqTree newTree 
)

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ GLOBAL_DEFAULT_ALGORITHM

const ETreeMethod GLOBAL_DEFAULT_ALGORITHM = eNJ

Definition at line 59 of file cuSeqTreeAlg.hpp.

◆ NUMBER_OF_TREE_ALGORITHMS

const int NUMBER_OF_TREE_ALGORITHMS = 2

Definition at line 45 of file cuSeqTreeAlg.hpp.

◆ RESET_WITH_TINY_DISTANCE

const double RESET_WITH_TINY_DISTANCE = 0.0001

Definition at line 65 of file cuSeqTreeAlg.hpp.

Referenced by TreeAlgorithm::midpointRootIfNeeded().

◆ TREE_ALGORITHM_NAMES

const string TREE_ALGORITHM_NAMES[]
Initial value:
= {
"",
"Single Linkage Clustering",
"Neighbor Joining"
}

Definition at line 46 of file cuSeqTreeAlg.hpp.

Referenced by TreeAlgorithm::GetName(), and GetTreeAlgorithmName().

Modified on Wed Apr 17 13:09:28 2024 by modify_doxy.py rev. 669887