get_peak_separation

seas.signalanalysis.get_peak_separation(log_pdf: numpy.ndarray, x_grid: Optional[numpy.ndarray] = None)float[source]

Get peak to peak separation value from the log pdf. This is used in

Parameters
  • log_pdf – The log pdf function specifying the density distribution.

  • x_grid – Optional argument specifying the coordiates matching the log_pdf. If empty, -0.2 : 1.2 in 1200 points is the default.

Returns

The peak to peak distance of the log_pdf.

Return type

peak_separation