skferm.growth_models package#

Submodules#

skferm.growth_models.gompertz module#

gompertz(t: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], a: float, b: float, c: float)[source]#

Predict the value at time t using the modified Gompertz function.

Parameters: t (float or array-like): The time at which to predict the value. a (float): The upper asymptote. b (float): The displacement along the time axis. c (float): The growth rate.

Returns: float or array-like: The function value at time t.

modified_gompertz(t: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], A: float, L: float, mu: float)[source]#

modified gompertz as proposed by Zwietering et al. 1990

This gompertz has more interpretable parameters than the original gompertz.

Parameters:
  • t (float or array-like) – The time at which to predict the value.

  • A (float) – The upper asymptote.

  • L (float) – The lag phase

  • mu (float) – The maximum specific growth rate

Returns: float or array-like: The function value at time t.

skferm.growth_models.logistic module#

logistic_growth(t: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], N0: float, Nmax: float, r: float) ndarray[source]#

Simulate microbial growth using the logistic growth model.

Parameters: - t (array-like): Time points. - N0 (float): Initial population size. - Nmax (float): Maximum population size (carrying capacity). - r (float): Growth rate.

Returns: - array-like: Population at each time point.

Module contents#

modified_gompertz(t: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], A: float, L: float, mu: float)[source]#

modified gompertz as proposed by Zwietering et al. 1990

This gompertz has more interpretable parameters than the original gompertz.

Parameters:
  • t (float or array-like) – The time at which to predict the value.

  • A (float) – The upper asymptote.

  • L (float) – The lag phase

  • mu (float) – The maximum specific growth rate

Returns: float or array-like: The function value at time t.

logistic_growth(t: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], N0: float, Nmax: float, r: float) ndarray[source]#

Simulate microbial growth using the logistic growth model.

Parameters: - t (array-like): Time points. - N0 (float): Initial population size. - Nmax (float): Maximum population size (carrying capacity). - r (float): Growth rate.

Returns: - array-like: Population at each time point.