Matrix::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 Matrix::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:

See Also: Matrix::PhaseSpectrum
Declared in Dew::Math::Matrix · 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 Matrix::Complex property is true or if array borders are overrun/underrun.

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