tracts.phase_type_distribution#

Functions

get_survival_factors(migration_matrix)

Takes a migration matrix of T generations and returns a list of length T, which is the probability of a migrant allele from that generation surviving to the present.

Classes

PhTDioecious(migration_matrix_f, ...[, ...])

A subclass of PhaseTypeDistribution providing the specific Phase-Type tools for the Dioecious Fine (DF) and Dioecious Coarse (DC) Markov approximations.

PhTMonoecious(migration_matrix[, rho])

A subclass of PhaseTypeDistribution providing the specific Phase-Type tools for the Monoecious Markov approximation.

PhaseTypeDistribution([max_remaining_tracts])

A class representing the phase-type distribution of tract lengths generated by a given (pair of) migration matrix (matrices).