CxCrossSpectrum
Advanced Analysis Library Only
AnalysisLibErrType CxCrossSpectrum (NIComplexNumber xArray[], NIComplexNumber yArray[], ssize_t numberOfElements, NIComplexNumber crossSpectrum[]);
Purpose
Calculates the double-sided cross power spectrum, Sxy, of the complex input sequences X and Y according to the following formula:

where FFT*[X] is the complex conjugate of FFT[X].
The input sequences are copied to internal buffers and zero-padded to n samples before the FFTs are computed. The output arrays are the real and imaginary parts of the cross spectrum CxCrossSpectrum.
Parameters
Input | ||
Name | Type | Description |
xArray | NIComplexNumber [] | Time-domain signal X. |
yArray | NIComplexNumber [] | Time-domain signal Y. |
numberOfElements | ssize_t | Number of elements in the input arrays. xArray and yArray must have the same length. |
Output | ||
Name | Type | Description |
crossSpectrum | NIComplexNumber [] | Double-sided cross power spectrum between signals xArray and yArray. The size of this array must be at least numberOfElements. |
Return Value
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |
Additional Information
Library: Advanced Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 2012 and later