Deconvolve
Advanced Analysis Library Only
AnalysisLibErrType Deconvolve (double arrayY[], ssize_t numberOfYElements, double arrayX[], ssize_t numberOfXElements, double hArray[]);
Purpose
Calculates the deconvolution of YArray with XArray.
Deconvolve assumes YArray to be the result of the convolution of XArray with some system response (HArray). The function realizes the deconvolution operation using Fourier transform pairs. Deconvolve obtains the output sequence HArray using the following formula:

where | X(f) is the Fourier transform of XArray |
Y(f) is the Fourier transform of YArray | |
InvFFT is the inverse Fourier transform |
Parameters
Input | ||
Name | Type | Description |
arrayY | double [] | Input array to deconvolve with XArray. |
numberOfYElements | ssize_t | Number of elements in YArray. |
arrayX | double [] | Input array with which to deconvolve YArray. The size of this array must be at least numYElements. |
numberOfXElements | ssize_t | Number of elements in XArray. numXElements ![]() |
Output | ||
Name | Type | Description |
hArray | double [] | Output array that is YArray deconvolved with XArray. This array must be (numYElements — numXElements + 1) elements long. |
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 3.1 and later
Example
Refer to analysis\convolve.cws for an example of using the Deconvolve function.