bpp-phyl  2.2.0
bpp::AgglomerativeDistanceMethod Class Referenceabstract

Interface for agglomerative distance methods. More...

#include <Bpp/Phyl/Distance/DistanceMethod.h>

+ Inheritance diagram for bpp::AgglomerativeDistanceMethod:
+ Collaboration diagram for bpp::AgglomerativeDistanceMethod:

Public Member Functions

 AgglomerativeDistanceMethod ()
 
virtual ~AgglomerativeDistanceMethod ()
 
virtual void setDistanceMatrix (const DistanceMatrix &matrix)=0 throw (Exception)
 Set the distance matrix to use. More...
 
virtual void computeTree ()=0
 Perform the clustering. More...
 
virtual TreegetTree () const =0
 
virtual std::string getName () const =0
 
virtual void setVerbose (bool yn)=0
 
virtual bool isVerbose () const =0
 

Detailed Description

Interface for agglomerative distance methods.

This interface does not contain any specific method and is there only for "ontology" purposes. Specific methods might be added later.

Definition at line 110 of file DistanceMethod.h.

Constructor & Destructor Documentation

◆ AgglomerativeDistanceMethod()

bpp::AgglomerativeDistanceMethod::AgglomerativeDistanceMethod ( )
inline

Definition at line 114 of file DistanceMethod.h.

◆ ~AgglomerativeDistanceMethod()

virtual bpp::AgglomerativeDistanceMethod::~AgglomerativeDistanceMethod ( )
inlinevirtual

Definition at line 115 of file DistanceMethod.h.

Member Function Documentation

◆ computeTree()

virtual void bpp::DistanceMethod::computeTree ( )
pure virtualinherited

Perform the clustering.

Implemented in bpp::AbstractAgglomerativeDistanceMethod, and bpp::BioNJ.

◆ getName()

virtual std::string bpp::DistanceMethod::getName ( ) const
pure virtualinherited
Returns
The name of the distance method.

Implemented in bpp::HierarchicalClustering, bpp::BioNJ, bpp::NeighborJoining, and bpp::PGMA.

◆ getTree()

virtual Tree* bpp::DistanceMethod::getTree ( ) const
pure virtualinherited
Returns
The computed tree.

Implemented in bpp::AbstractAgglomerativeDistanceMethod, bpp::HierarchicalClustering, and bpp::PGMA.

◆ isVerbose()

virtual bool bpp::DistanceMethod::isVerbose ( ) const
pure virtualinherited
Returns
True if verbose mode is enabled.

Implemented in bpp::AbstractAgglomerativeDistanceMethod.

◆ setDistanceMatrix()

virtual void bpp::DistanceMethod::setDistanceMatrix ( const DistanceMatrix &  matrix)
throw (Exception
)
pure virtualinherited

Set the distance matrix to use.

Parameters
matrixThe matrix to use.
Exceptions
ExceptionIn case an incorrect matrix is provided (eg smaller than 3).

Implemented in bpp::AbstractAgglomerativeDistanceMethod, bpp::BioNJ, bpp::NeighborJoining, and bpp::PGMA.

◆ setVerbose()

virtual void bpp::DistanceMethod::setVerbose ( bool  yn)
pure virtualinherited
Parameters
ynEnable/Disable verbose mode.

Implemented in bpp::AbstractAgglomerativeDistanceMethod.


The documentation for this class was generated from the following file: