Vector::PowerSpectrum Method

Overload List

#SignatureDescription
1TMtxVec *PowerSpectrum(TMtxVec *Vec) const;The power spectrum from object complex values.
2TMtxVec *PowerSpectrum(TMtxVec *Vec, int VecIndex, int Index, int Len) const;Calculates the power spectrum from the Vec complex elements [VecIndex]..[VecIndex+Len-1].

Overload 1: TMtxVec *PowerSpectrum(TMtxVec *Vec) const;

The power spectrum from object complex values.

#NameTypeDescription
1VecTMtxVec *
Remarks:

Calculates the power spectrum from the Vec object complex values and stores the results (power spectrum) in the real calling object. Size and Vector::Complex properties of the calling object are set implicitly to match Vec object. The spectrum elements are squares of the magnitudes of the complex input elements:

Spect[k]=((Vec[k]))2+((Vec[k]))2\text{Spect}[k] = \left(\Re (\text{Vec}[k]) \right)^2 + \left(\Im (\text{Vec}[k]) \right)^2
See Also: Vector::PhaseSpectrum
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *PowerSpectrum(TMtxVec *Vec, int VecIndex, int Index, int Len) const;

Calculates the power spectrum from the Vec complex elements [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

Store the results in calling object real elements [Index]..[Index+Len-1]. An exception is raised if calling object Vector::Complex property is true or if array borders are overrun/underrun.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler