Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Earth_mover_distance_connectivity_constraints_checker< EarthMoverDistance > Class Template Reference

Functor measuring the violation of the connectivity constraints of any Earth Mover Distance algorithm. More...

#include <Earth_mover_distance_connectivity_constraints_checker.hpp>

Public Types

typedef T_Earth_mover_distance_connectivity_constraints_checker< EarthMoverDistance > Self
typedef EarthMoverDistance::Vertices_container Vertices_container
typedef EarthMoverDistance::Transportation_plan Transportation_plan
typedef std::pair< double, double > result_type

Public Member Functions

 T_Earth_mover_distance_connectivity_constraints_checker (void)
result_type operator() (const Vertices_container &source, const Vertices_container &demand, const Transportation_plan &tplan) const

Static Public Member Functions

static void set_verbose_mode (unsigned verbose)
static void set_log (std::ostream &out)

Detailed Description

template<class EarthMoverDistance>
class SBL::CADS::T_Earth_mover_distance_connectivity_constraints_checker< EarthMoverDistance >

Functor measuring the violation of the connectivity constraints of any Earth Mover Distance algorithm.

It retourns two statistics :

  • the number of paired vertices that have not the same connectivity (same out going edges),
  • the number of edges of an input that have no counterpart in the other input.
Template Parameters
EarthMoverDistanceRepresentation of one of the Earth Mover Distance algorithm : SBL::CADS::T_Earth_mover_distance or SBL::CADS::T_Earth_mover_distance_with_connectivity_constraints (in this latter case, there should be no violation).

Member Typedef Documentation

◆ result_type

typedef std::pair<double, double> result_type

◆ Self

◆ Transportation_plan

typedef EarthMoverDistance::Transportation_plan Transportation_plan

◆ Vertices_container

typedef EarthMoverDistance::Vertices_container Vertices_container

Constructor & Destructor Documentation

◆ T_Earth_mover_distance_connectivity_constraints_checker()

Member Function Documentation

◆ operator()()

T_Earth_mover_distance_connectivity_constraints_checker< EarthMoverDistance >::result_type operator() ( const Vertices_container source,
const Vertices_container demand,
const Transportation_plan tplan 
) const

◆ set_log()

void set_log ( std::ostream &  out)

◆ set_verbose_mode()

void set_verbose_mode ( unsigned  verbose)