Advanced Analysis Library Only
AnalysisLibErrType Sinc (int numberOfElements, double amplitude, double delay, double dt, double sincPattern[]);
Generates an array that contains a sinc pattern. Sinc generates the output array x according to the following formula:
xi = amplitude × sinc (i × dt – delay)
where
Input | ||
Name | Type | Description |
numberOfElements | integer | Number of elements to generate in the sinc pattern. |
amplitude | double-precision | Amplitude of the resulting sinc pattern. Default Value: 1.0. |
delay | double-precision | Shifts the peak value of the sinc pattern to the index. index = delay/dt Default Value: 0.0. |
dt | double-precision | Sampling interval; inversely proportional to the width of the main lobe of the
sinc pattern that Sinc generates. The recommended range is 0.0 < dt ![]() |
Output | ||
Name | Type | Description |
sincPattern | double-precision array | The generated sinc pattern. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |