A FreqSpectrum represents a sampled function in the frequency domain, in a polar form.
Create a new instance with the given magnitude and phase.
magnitude |
Frequency domain magnitude. If |
phase |
Frequency domain phase. If |
Create a new instance given a spectrum in complex form.
Create a new Array whose slots are filled with linearly spaced magnitudes to create a log shelf filter.1 See also: Signal: *logShelf.
size |
The size of the spectrum to return. |
freq0 |
The frequeny, at which to begin transition from gainDC to gainNy, in Hz. |
freq1 |
The frequeny, at which to end transition from gainDC to gainNy, in Hz. |
gainDC |
The gain at DC, in dB. |
gainNy |
The gain at Nyquist, in dB. |
sampleRate |
The sample rate, in Hz. |
Return a power-law spectrum. Magnitude at Nyquist is normalized to 1.
size |
The size of the spectrum to return. | ||||||||||||||||||
beta |
Power spectral density.
|
FreqSpectrum size.
Coefficient frequencies.
Coefficient numbers.
Energy weighted average frequency.
Return bandwidth, in Hz.
fraction |
If < 1.0, return fractional power containment bandwidth. If |
sampleRate |
The sample rate, in Hz. |
Set or return the magnitude.
Return the peak magnitude.
Return energy weighted average magnitude.
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. |
Synonym for -magnitude
Return the energy density.
Return the total energy.
Return the RMS.
Scale the magnitude in place.
Normalize the magnitude in place to 1.
Reset the magnitude in place to 1.
Set or return the phase.
Synonym for -phase
Synonym for -phase
Add pi
to phase.
Add pi
to phase in place.
Rotate the phase by a value in radians, in place. See also Signal: -rotatePhase.
Rotate the time domain waveform by a value in radians, in place. See also Signal: -rotateWave.
Return a spectrum with phase wrapped, preserving the magnitude, in place. See also -continuousPhase.
Return a spectrum with phase unwrapped, preserving the magnitude, in place.2 See also -principalPhase.
groupDelay |
group delay analysis, in samples. |
Return a linear phase spectrum, preserving the magnitude, in place. See also Signal: -linearPhase.
sym |
a Boolean indicating whether the window is symmetric or periodic. Default is false. |
Return a minimum phase spectrum, preserving the magnitude, in place.3 See also Signal: -minimumPhase.
mindb |
a minimum value in dB to clip amplitude response to. Reduces time aliasing. |
Return a gaussian noise phase spectrum, preserving the magnitude, in place. See also Signal: -gaussianPhase.
Return phase delay analysis, in samples.
Return group delay analysis, in samples.4
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous.5 |
Return phase offset analysis, aka intercept phase, in radians.6
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. See also -groupDelay |
sampleRate |
The sample rate, in Hz. |
Return energy weighted average phase delay analysis, in samples. See also -phaseDelay
Return energy weighted average group delay analysis, in samples. See also -groupDelay
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. |
Return energy weighted average phase offset analysis, aka intercept phase, in radians. See also -phaseOffset
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. See also -groupDelay |
sampleRate |
The sample rate, in Hz. |
Return Polar.
Return Complex.
Return the real part of the complex spectrum.
Return the imaginary part of the complex spectrum.
TBD