Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
protocols::cluster::Exemplar Class Reference

Data structure for one similarity measurement (s_ik) for affinity propagation clustering. More...

#include <APCluster.hh>

Public Member Functions

 Exemplar (core::Size k_in, core::Real s_ik_in)
 
 ~Exemplar ()=default
 

Static Public Member Functions

static bool min_heap (Exemplar a, Exemplar b)
 "Less than" (actually greater than) comparator for making a heap of exemplars More...
 

Public Attributes

core::Size k
 
core::Real s_ik
 
core::Real r_ik
 
core::Real a_ik
 

Detailed Description

Data structure for one similarity measurement (s_ik) for affinity propagation clustering.

There will be one instance of this class for each (finite) similarity between two input points, up to a maximum of N*N instances if the similarity matrix is fully populated.

Constructor & Destructor Documentation

protocols::cluster::Exemplar::Exemplar ( core::Size  k_in,
core::Real  s_ik_in 
)
inline
protocols::cluster::Exemplar::~Exemplar ( )
default

Member Function Documentation

bool protocols::cluster::Exemplar::min_heap ( Exemplar  a,
Exemplar  b 
)
static

"Less than" (actually greater than) comparator for making a heap of exemplars

Less-than comparator works backwards on similarity values, to effectively implement a min-heap instead of a max-heap.

References s_ik.

Referenced by protocols::cluster::DataPoint::add_similarity().

Member Data Documentation

core::Real protocols::cluster::Exemplar::a_ik
core::Size protocols::cluster::Exemplar::k
core::Real protocols::cluster::Exemplar::r_ik
core::Real protocols::cluster::Exemplar::s_ik

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