elynx-tree-0.0.1: Handle phylogenetic trees

Copyright(c) Dominik Schrempf 2018
LicenseGPL-3
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Data.Tree.SumStat

Description

Creation date: Thu May 17 14:05:45 2018.

Synopsis

Documentation

type BrLnNChildren = (Double, Int) Source #

Pair of branch length with number of extant children.

type NChildSumStat = [BrLnNChildren] Source #

Possible summary statistic of phylogenetic trees. A list of tuples (BranchLength, NumberOfExtantChildrenBelowThisBranch).

toNChildSumStat :: Measurable a => Tree a -> NChildSumStat Source #

Compute NChilSumStat for a phylogenetic tree.

formatNChildSumStat :: NChildSumStat -> ByteString Source #

Format the summary statistics in the following form: @ nLeaves1 branchLength1 nLeaves2 branchLength2 ....