ivy.chars.discrete module

ivy.chars.discrete.NoTO(tree, chars)[source]

Number of Tips Per Origin

See: Bromham et al. 2016

ivy.chars.discrete.is_monotypic(node, chardict)[source]
ivy.chars.discrete.monotypic_clade_size(tree, chars)[source]

Count diversity contained within subclades having the same character state.

ivy.chars.discrete.nodeLikelihood(node)[source]

Take node “node” and calculate its likelihood given its children’s likelihoods, branch lengths, and p-matrix. :param node: A node to calculate the likelihood for :type node: Node

Returns:The likelihood of the node given the data
Return type:float
ivy.chars.discrete.sse_get_lambda(params, i, j, k, nstate)[source]
ivy.chars.discrete.sse_get_mu(params, i, nstate)[source]
ivy.chars.discrete.sse_get_qij(params, i, j, nstate)[source]
ivy.chars.discrete.tip_age_rank_sum(tree, chars)[source]

Calculate tip age rank sums of two traits and return test statistic and p-value

See: Bromham et al. 2016