Public Member Functions | Public Attributes

lazy_distance_functor< T, D > Struct Template Reference

Functor for computing distance lazily from an object array and a distance metric. More...

#include <dissimilarity.h>

List of all members.

Public Member Functions

 lazy_distance_functor (const std::vector< T > &objs, D d)
double operator() (size_t i, size_t j)

Public Attributes

const std::vector< T > & objects
dissimilarity

Detailed Description

template<class T, class D>
struct cluster::lazy_distance_functor< T, D >

Functor for computing distance lazily from an object array and a distance metric.

Use this for CLARA, where we don't want to precompute the entire distance matrix.

Definition at line 110 of file dissimilarity.h.


Constructor & Destructor Documentation

lazy_distance_functor ( const std::vector< T > &  objs,
d 
) [inline]

Definition at line 114 of file dissimilarity.h.


Member Function Documentation

double operator() ( size_t  i,
size_t  j 
) [inline]

Definition at line 117 of file dissimilarity.h.


Member Data Documentation

Definition at line 112 of file dissimilarity.h.

const std::vector<T>& objects

Definition at line 111 of file dissimilarity.h.


The documentation for this struct was generated from the following file:
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