Summary
The power spectrum from object complex values.
Class
TMtxVec
Declaration
Function PowerSpectrum(Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec;
Description
Calculates the power spectrum from the Vec complex elements [VecIndex]..[VecIndex+Len-1] and store the results in calling object real elements [Index]..[Index+Len-1]. An exception is raised if calling object
Complex property is true or if array borders are overrun/underrun.
Declaration
Function PowerSpectrum(Vec: TMtxVec): TMtxVec;
Description
Calculates the power spectrum from the Vec object complex values and stores the results (power spectrum) in the real calling object. Size and
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:

Example 1
var a,b: TVec;
begin
CreateIt(a,b);
try
a.SetIt(True,[1,2,3,-4]); // a = [1 + 2i, 3 - 4i]
b.PowerSpectrum(a); // b = [1*1 + 2*2, 3*3+(-4)*(-4)]
finally
FreeIt(a,b);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com