ImpulseResponse

Advanced Analysis Library Only

AnalysisLibErrType ImpulseResponse (double stimulus[], double response[], int numberOfElements, double impulse[]);

Purpose

Calculates the impulse response of a network based on time-domain signals stimulus and response. The impulse response is in the time domain. The impulse response is the inverse Fourier transform of the transfer function:

where Sxy(f) is the two-sided cross power spectrum of the stimulus(x) with the response(y)
Sxx(f) is the two-sided auto power spectrum of the stimulus

Parameters

Input
Name Type Description
stimulus double-precision array The time-domain signal, usually the network stimulus.
response double-precision array The time-domain signal, usually the network response.
numberOfElements integer Number of elements in the input array.

Default Value: 1024.
Output
Name Type Description
impulse double-precision array The impulse response of the network based on time-domain signals stimulus and response. 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.