PaGMO
1.1.5
|
#include <neighbourhood.h>
Static Public Member Functions | |
static void | compute_neighbours (std::vector< std::vector< pagmo::population::size_type > > &, const std::vector< std::vector< double > > &) |
static double | distance (const std::vector< double > &, const std::vector< double > &) |
Build a neighbourhood graph for vectors of real numbers using the euclidian distance
Definition at line 69 of file neighbourhood.h.
|
static |
Compute the neighbourhood graph. At the end of the call retval[i][j] will contain the j-th closest vector (according to the euclidian distance) to the i-th vector.
[out] | retval | a matrix representing the neigborhood graph |
[in] | weights | the vector of real vectors |
Definition at line 20 of file neighbourhood.cpp.
|
static |
Compute the euclidian distance between two real vectors
a | first vector |
b | second vector |
Definition at line 36 of file neighbourhood.cpp.