Adding random noise to genetic values

class fwdpy11.GeneticValueNoise

ABC for noise classes affecting fwdpy11.DiploidPopulation.

class fwdpy11.NoNoise

No random effects on genetic values

Changed in version 0.8.0: Refactored to use attrs and inherit from low-level C++ class

class fwdpy11.GaussianNoise(sd: float, mean: float = 0.0)

Gaussian noise added to genetic values. This class has the following attributes, whose names are also kwargs for intitialization. The attribute names also determine the order of positional arguments:

Parameters
  • sd (float) – Standard deviation

  • mean (float) – Mean value

Changed in version 0.8.0: Refactored to use attrs and inherit from low-level C++ class

asblack()

Return a string representation formatted with black

asdict()

Return dict representation

classmethod fromdict(d)

Build an instance from a dictionary