Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
D_Solution Class Reference

The solution space for the Maximum Spanning tree algorithm.
More...

#include <Solution_space_property_computers.hpp>

Attributes

unsigned K
 The number of meta-clusters. More...
 
unsigned D
 The diameter of the solution (by parameter) More...
 
int score
 The score of the solution. More...
 
std::vector< unsigned > meta_cluster_sizes
 The sizes of each individual meta cluster. More...
 

Constructors

 D_Solution ()
 The individual D_Solution is always initialized with a score = -1. More...
 
 D_Solution (unsigned K, unsigned D, int score, std::vector< unsigned > meta_cluster_sizes)
 Initialization from given parameters. More...
 

Operator

bool operator< (const D_Solution &sol) const
 
unsigned get_num_meta_clusters ()
 

Internal functions

void update_solution (unsigned K, unsigned D, int score, std::vector< unsigned > sizes)
 This function is needed for the cases where the solution space is a unique D solution. More...
 

Serialization

template<class Archive >
void serialize (Archive &ar, const unsigned BOOST_PFTO int version)
 

Detailed Description

The solution space for the Maximum Spanning tree algorithm.

Constructor & Destructor Documentation

◆ D_Solution() [1/2]

D_Solution ( )
inline

The individual D_Solution is always initialized with a score = -1.

◆ D_Solution() [2/2]

D_Solution ( unsigned  K,
unsigned  D,
int  score,
std::vector< unsigned >  meta_cluster_sizes 
)
inline

Initialization from given parameters.

Member Function Documentation

◆ update_solution()

void update_solution ( unsigned  K,
unsigned  D,
int  score,
std::vector< unsigned >  sizes 
)
inline

This function is needed for the cases where the solution space is a unique D solution.

Member Data Documentation

◆ D

unsigned D

The diameter of the solution (by parameter)

◆ K

unsigned K

The number of meta-clusters.

◆ meta_cluster_sizes

std::vector<unsigned> meta_cluster_sizes

The sizes of each individual meta cluster.

◆ score

int score

The score of the solution.