cog.cpp File Reference

`#include "genesis/placement/function/cog.hpp"`

`#include "genesis/placement/function/functions.hpp"`

`#include "genesis/placement/function/helper.hpp"`

`#include "genesis/placement/function/operators.hpp"`

`#include "genesis/placement/sample.hpp"`

`#include "genesis/tree/common_tree/distances.hpp"`

`#include "genesis/tree/function/distances.hpp"`

`#include "genesis/tree/function/operators.hpp"`

`#include "genesis/tree/iterator/node_links.hpp"`

`#include "genesis/tree/iterator/postorder.hpp"`

`#include "genesis/tree/tree.hpp"`

`#include "genesis/utils/core/logging.hpp"`

`#include <algorithm>`

`#include <cassert>`

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 | |

std::pair< PlacementTreeEdge const *, double > | center_of_gravity (Sample const &smp, bool const with_pendant_length=false) |

Calculate the Center of Gravity of the placements on a tree. More... | |

double | center_of_gravity_distance (Sample const &smp_a, Sample const &smp_b, bool const with_pendant_length=false) |

Calculate the distance between the two Centers of Gravity of two Samples. More... | |

double | center_of_gravity_variance (Sample const &smp, bool const with_pendant_length=false) |

Calculate the variance of the PqueryPlacements of a Sample around its Center of Gravity. More... | |