Functor for computing distance lazily from an object array and a distance metric. More...
#include <dissimilarity.h>
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 |
D | dissimilarity |
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.
lazy_distance_functor | ( | const std::vector< T > & | objs, |
D | d | ||
) | [inline] |
Definition at line 114 of file dissimilarity.h.
double operator() | ( | size_t | i, |
size_t | j | ||
) | [inline] |
Definition at line 117 of file dissimilarity.h.
Definition at line 112 of file dissimilarity.h.
const std::vector<T>& objects |
Definition at line 111 of file dissimilarity.h.