wavespectra.core.npstats.tp_gufunc#

wavespectra.core.npstats.tp_gufunc = <ufunc 'tp_gufunc'>#

tp_gufunc(x1, x2, x3, /, out=None, *, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj, axes, axis])

Peak wave period Tp.

Args:
  • ipeak (int): Index of the maximum energy density in frequency spectrum E(f).

  • spectrum (1darray): Frequency wave spectrum array E(f).

  • freq (1darray): Wave frequency array.

Returns:
  • tp (float): Period of the maximum energy density in the frequency spectrum.

Note:
  • Arg spectrum is only defined so the signature is consistent with tps function.