pastas.rfunc.One.moment#
- pastas.rfunc.One.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 One response function.
- Parameters:
- Returns:
moment – Moment of the specified order. Returns gain(p) for order=0, 0.0 otherwise.
- Return type:
- Raises:
ValueError – If method is not ‘discrete’.