pastas.rfunc.One.moment#

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

Compute the raw moment of the response function.

Parameters:
  • p (array_like) – array_like object with the values as floats representing the model parameters.

  • order (int) – The order of the moment to compute (0 through 4).

  • method ({'discrete', 'exact'}, optional) – Method to compute the moment. ‘discrete’ uses numerical integration of the discrete impulse response values, ‘exact’ uses the analytical expression for the moment if available. Default is ‘discrete’.

  • dt (float, optional) – Time step between impulse response values. Default is 1.0.