Skip to content

epymorph.parameter_fitting.distribution

Distribution

Bases: ABC

Abstract base class for the prior/initial distributions for static/dynamic parameter estimation.

rvs abstractmethod

rvs(size: int, random_state: Generator)

Draws independent random variates (aka random deviates, realizations, or samples) from the distribution.

Parameters:

  • size (int) –

    Number of random variates to draw.

  • random_state (Generator) –

    The random number generator to use.

Uniform

Uniform(a: float, b: float)

Bases: Distribution

Continuous uniform distribution on an interval.

Attributes:

  • a (float) –

    The left endpoint of the interval.

  • b (float) –

    The right endpoint of the interval.

Parameters:

  • a (float) –

    The left endpoint of the the interval.

  • b (float) –

    The right endpoint of the the interval.

a instance-attribute

a = a

b instance-attribute

b = b

rvs

rvs(size=1, random_state: Generator | None = None)

Draws from a random continuous uniform distribution on an interval.

Parameters:

  • size (int, default: 1 ) –

    Number of random variates to draw.

  • random_state (Generator, default: None ) –

    The random number generator to use.