tracts.demography.parameter.Parameter#

class Parameter(name, param_type, bounds, index=None)#

Bases: object

A class representing a parameter in a demographic model.

name#

The name of the parameter.

Type:

str

type#

The type of the parameter, which determines its bounds.

Type:

ParamType

bounds#

The lower and upper bounds of the parameter, determined by its type.

Type:

tuple[float, float]

index#

The index of the parameter in the list of parameters to optimize, or None if the parameter is fixed by value or ancestry proportion.

Type:

int | None

__init__(name, param_type, bounds, index=None)#

Initializes a Parameter object.

Parameters:
  • name (str) – The name of the parameter.

  • param_type (ParamType) – The type of the parameter.

  • bounds (tuple[float, float]) – The lower and upper bounds of the parameter.

  • index (int | None) – The index of the parameter in the list of parameters to optimize, or None if the parameter is fixed by value or ancestry proportion. Default is None.