Classes | Namespaces | Typedefs | Functions

src/dissimilarity.h File Reference

Data types and functions for dealing with dissimilarity matrices. More...

#include <vector>
#include <boost/numeric/ublas/symmetric.hpp>
#include <iostream>
Include dependency graph for dissimilarity.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Data types and functions for dealing with dissimilarity matrices.

Author:
Todd Gamblin tgamblin@llnl.gov

Definition in file dissimilarity.h.

Muster. Copyright © 2010, Lawrence Livermore National Laboratory, LLNL-CODE-433662.
Distribution of Muster and its documentation is subject to terms of the Muster LICENSE.
Generated on Mon Dec 20 2010 using Doxygen 1.7.2