A library for working with phylogenetic and population genetic data.
v0.32.0
distance.cpp File Reference

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

Matrix< double > euclidean_distance_matrix (Matrix< double > const &data)
 Calculate the pairwise euclidean distance matrix between the rows of a given matrix. More...
 
Matrix< double > manhattan_distance_matrix (Matrix< double > const &data)
 Calculate the pairwise manhatten distance matrix between the rows of a given matrix. More...
 
Matrix< double > maximum_distance_matrix (Matrix< double > const &data)
 Calculate the pairwise maximum distance matrix between the rows of a given matrix. More...
 
Matrix< double > p_norm_distance_matrix (Matrix< double > const &data, double p=2.0)
 Calculate the pairwise distance matrix between the rows of a given matrix. More...