wavespectra.core.npstats.tp#

wavespectra.core.npstats.tp(ipeak, spectrum, freq)[source]#

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.