SpectralCentroid#
- class ansys.sound.core.psychoacoustics.SpectralCentroid(signal=None)#
Computes the spectral centroid of a signal.
Class instantiation takes the following parameters.
- Parameters:
- signal
Field
Signal on which to compute spectral centroid as a DPF field.
- signal
Methods
Convert a DPF fields container to a NumPy array.
Get the spectral centroid.
Get the spectral centroid as a NumPy array.
Get the spectral centroid.
Plot the output.
Compute the spectral centroid.
Attributes
Input sound signal as a DPF field.