A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCClusterer_1_1CSingleCluster.html below:

NCBI C++ ToolKit: CClusterer::CSingleCluster Class Reference

Search Toolkit Book for CClusterer::CSingleCluster

Single cluster. More...

#include <algo/cobalt/clusterer.hpp>

Single cluster.

Definition at line 74 of file clusterer.hpp.

◆ const_iterator ◆ iterator ◆ CSingleCluster() CClusterer::CSingleCluster::CSingleCluster ( void  ) inline ◆ AddElement() void CClusterer::CSingleCluster::AddElement ( int  el ) inline ◆ begin() [1/2] ◆ begin() [2/2] ◆ clear() void CClusterer::CSingleCluster::clear ( void  ) inline ◆ end() [1/2] ◆ end() [2/2] ◆ FindCenterElement()

Find element that is closest to the center of the cluster.

Parameters
dmatrix Full distance matrix used to cluster data
Returns
Index of element that has smallest distance to all other elements

Definition at line 1184 of file clusterer.cpp.

References i, and NCBI_THROW.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetElements() const vector<int>& CClusterer::CSingleCluster::GetElements ( void  ) const inline

Get list of cluster elements.

Returns
Cluster elements

Definition at line 130 of file clusterer.hpp.

◆ GetMaxDistance() double CClusterer::CSingleCluster::GetMaxDistance ( void  ) const inline

Get maximum distance in cluster.

Returns
Maximum distance in cluster

Definition at line 113 of file clusterer.hpp.

◆ GetPrototype() int CClusterer::CSingleCluster::GetPrototype ( void  ) const inline ◆ operator[]() int CClusterer::CSingleCluster::operator[] ( size_t  index ) const ◆ SetMaxDistance() void CClusterer::CSingleCluster::SetMaxDistance ( double  dist ) inline ◆ SetPrototype() void CClusterer::CSingleCluster::SetPrototype ( int  el ) inline

Set cluster prototype.

Parameters
el Index of element to be used as cluster prototype

Prototype does not have to belong to the cluster

Definition at line 98 of file clusterer.hpp.

◆ size() size_t CClusterer::CSingleCluster::size ( void  ) const inline

Get cluster size.

Returns
Number of elements in the cluster

Definition at line 118 of file clusterer.hpp.

Referenced by BOOST_AUTO_TEST_CASE(), CClusterer::ComputeClustersFromLinks(), CClusterer::GetClusterDistMatrix(), s_FindDistAsMax(), s_FindDistAsMean(), s_FindMaxDistFromElem(), s_FindSumDistFromElem(), s_MakeTwoLeafTree(), s_SetLeafIds(), s_TestClusterTree(), CMultiAligner::x_ComputeClusterTrees(), CMultiAligner::x_FindQueryClusters(), CClusterer::x_JoinClusters(), and CMultiAligner::x_MakeClusterResidueFrequencies().

◆ m_Diameter double CClusterer::CSingleCluster::m_Diameter protected ◆ m_DistToRoot vector<double> CClusterer::CSingleCluster::m_DistToRoot ◆ m_Elements vector<int> CClusterer::CSingleCluster::m_Elements protected ◆ m_Prototype int CClusterer::CSingleCluster::m_Prototype protected

Index of cluster representative element.

Definition at line 146 of file clusterer.hpp.

◆ m_Tree

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4