pastas.rfunc.DoubleExponential.moment#

pastas.rfunc.DoubleExponential.moment(p: pastas.typing.ArrayLike, order: int, method: Literal['discrete', 'exact'] = 'discrete', dt: float = 1.0) float#

Calculate the moment of a certain order for the DoubleExponential response function.

Parameters:
  • p (array_like) – Response function parameters [A, alpha, a1, a2].

  • order (int) – Order of the moment to calculate.

  • method (str, optional) – Method to use: ‘discrete’ or ‘exact’. Default is ‘discrete’.

  • dt (float, optional) – Time step in days. Default is 1.0.

Returns:

moment – Moment of the specified order.

Return type:

float

Raises:

ValueError – If method is not ‘discrete’ or ‘exact’.