tracts.demography.base_parametrized_demography#

Defines BaseParametrizedDemography, the abstract base class for a parametrized demographic model (a named set of populations, founder/migration events and parameters), together with the founder and migration event base classes it is built from, and FixedParametersHandler for fixing a subset of parameters by value or from observed ancestry proportions. Subclassed by ParametrizedDemography and ParametrizedDemographySexBiased.

Functions

smooth_clip01(x[, beta])

approaches 0 if x<0, 1 if x>1, approx linear in between

softplus(x[, beta])

Classes

BaseFounderEvent(found_time, ...[, ...])

Base class for founder events.

BaseMigrationEvent(rate_parameter, ...)

Base class for migration events.

BaseParametrizedDemography([name, min_time, ...])

Base class for parametrized demographies.

FixedParametersHandler(logger)

A class that handles the fixing of parameters based on ancestry proportions.

FounderEvent(found_time, source_populations, ...)

A class that sets up a founder event.