Data types and functions for dealing with dissimilarity matrices. More...
#include <vector>
#include <boost/numeric/ublas/symmetric.hpp>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | matrix_distance |
Adaptor for passing a matrix by reference to template functions that take a callable distance function. More... | |
struct | lazy_distance_functor< T, D > |
Functor for computing distance lazily from an object array and a distance metric. More... | |
Namespaces | |
namespace | cluster |
Namespace for everything in the cluster library. | |
Typedefs | |
typedef boost::numeric::ublas::symmetric_matrix < double > | dissimilarity_matrix |
Packed repersentation of symmetric dissimilarity matrix. | |
Functions | |
template<class T , class D > | |
void | build_dissimilarity_matrix (const std::vector< T > &objects, D dissimilarity, dissimilarity_matrix &mat) |
Computes a dissimilarity matrix from a vector of objects. | |
template<class T , class D > | |
void | build_dissimilarity_matrix (const std::vector< T > &objects, const std::vector< size_t > &subset, D dissimilarity, dissimilarity_matrix &mat) |
Computes a dissimilarity matrix from a subset of a vector of objects. | |
template<class T , class D > | |
lazy_distance_functor< T, D > | lazy_distance (const std::vector< T > &objs, D dist) |
Type-inferred syntactic sugar for constructing lazy_distance_functor. |
Data types and functions for dealing with dissimilarity matrices.
Definition in file dissimilarity.h.