A library for working with phylogenetic and population genetic data.
v0.32.0
placement/function/emd.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::placement
 

Functions

double earth_movers_distance (Sample const &lhs, Sample const &rhs, double const p=1.0, bool const with_pendant_length=false)
 Calculate the earth mover's distance between two Samples. More...
 
utils::Matrix< double > earth_movers_distance (SampleSet const &sample_set, double const p=1.0, bool const with_pendant_length=false)
 Calculate the pairwise Earth Movers Distance for all Samples in a SampleSet. More...