wavespectra.core.npstats.tp#
- wavespectra.core.npstats.tp(ipeak, spectrum, freq)[source]#
Peak wave period Tp.
- Parameters:
ipeak (-) – Index of the maximum energy density in frequency spectrum E(f).
spectrum (-) – Frequency wave spectrum array E(f).
freq (-) – Wave frequency array.
- Returns:
Period of the maximum energy density in the frequency spectrum.
- Return type:
tp (float)
Note
Arg spectrum is only defined so the signature is consistent with tps function.