get_output_as_nparray#

ToneToNoiseRatio.get_output_as_nparray()#

Get TNR data in a tuple as a NumPy array.

Returns:
tuple
  • First element: array of peaks’ frequencies in Hz.

  • Second element: array of peaks’ TNR values in dB.

  • Third element: array of peaks’ level values in dB SPL.

  • Fourth element: array of the lower-frequency limits, in Hz, of the critical bandwidths centered on the peaks’ frequencies.

  • Fifth element: array of the upper-frequency limits, in Hz, of the critical bandwidths centered on the peaks’ frequencies.

  • Sixth element: maximum TNR value in dB.

Note

The first five elements are arrays of the same length. The sixth element is a float.

Return type:

tuple[ndarray] | None