SpectralCentroid#

class ansys.sound.core.psychoacoustics.SpectralCentroid(signal=None)#

Computes the spectral centroid of a signal.

Class instantiation takes the following parameters.

Parameters:
signalField

Signal on which to compute spectral centroid as a DPF field.

Methods

SpectralCentroid.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

SpectralCentroid.get_output()

Get the spectral centroid.

SpectralCentroid.get_output_as_nparray()

Get the spectral centroid as a NumPy array.

SpectralCentroid.get_spectral_centroid()

Get the spectral centroid.

SpectralCentroid.plot()

Plot the output.

SpectralCentroid.process()

Compute the spectral centroid.

Attributes

SpectralCentroid.signal

Input sound signal as a DPF field.