CxLinEv1D
AnalysisLibErrType CxLinEv1D (double arrayXReal[], double arrayXImaginary[], ssize_t numberOfElements, double aReal, double aImaginary, double bReal, double bImaginary, double outputArrayReal[], double outputArrayImag[]);
Purpose
Performs a linear evaluation of a complex 1D array. CxLinEv1D obtains the ith element of the resulting complex array using the following formulas:
outputReali = aReal × arrayXReali – aImg × arrayXImgi + bReal
outputImgi = aReal × arrayXImgi + aImg × arrayXReali + bImg
CxLinEv1D can perform the operations in place; that is, the input and output complex arrays can be the same.
Parameters
Input | ||
Name | Type | Description |
arrayX_Real | double [] | Real part of the complex array used as the basis for the linear evaluation. |
arrayX_Imaginary | double [] | Imaginary part of the complex array used as the basis for the linear evaluation. |
numberOfElements | ssize_t | Number of elements to evaluate. |
a_Real | double | Real part of the multiplicative constant used in the linear evaluation of the input array. Default Value: 1.0. |
a_Imaginary | double | Imaginary part of the multiplicative constant used in the linear evaluation of the input array. Default Value: 1.0. |
b_Real | double | Real part of the additive constant used in the linear evaluation of the input array. Default Value: 0.0. |
b_Imaginary | double | Imaginary part of the additive constant used in the linear evaluation of the input array. Default Value: 0.0. |
Output | ||
Name | Type | Description |
outputArray_Real | double [] | Real part of the result of the linear evaluation of the input array. |
outputArray_Imag | double [] | Imaginary part of the result of the linear evaluation of the input array. |
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: Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later