tracts.demography.parameter.ParamType#

class ParamType(lower_bound, upper_bound)#

Bases: Enum

A class representing the type of a parameter in a demographic model.

TIME#

The bounds for time parameters, which must be positive and can be arbitrarily large.

Type:

tuple[float, float]

RATE#

The bounds for rate parameters, which must be between 0 and 1.

Type:

tuple[float, float]

SEX_BIAS#

The bounds for sex bias parameters, which must be between -1 and 1.

Type:

tuple[float, float]

UNTYPED#

The bounds for untyped parameters, which can be arbitrarily large in either direction.

Type:

tuple[float, float]

bounds#

The lower and upper bounds for the parameter type.

Type:

tuple[float, float]

__init__(lower_bound, upper_bound)#

Initializes a ParamType object.

Parameters:
  • lower_bound (float) – The lower bound for the parameter type.

  • upper_bound (float) – The upper bound for the parameter type.