DST
Advanced Analysis Library Only
AnalysisLibErrType DST (double inputArray[], ssize_t numberOfElements, ssize_t numberOfElementsInDST, double outputArray[]);
Purpose
Computes the one-dimensional Discrete Sine Transform (DST) of a sequence inputArray, which is defined as follows:
and
where | N is the length of inputArray |
![]() | |
![]() |
Parameters
Input | ||
Name | Type | Description |
inputArray | double [] | The input sequence. |
numberOfElements | ssize_t | The number of elements in inputArray. |
numberOfElementsInDST | ssize_t | The length of the DST to be performed. If numberOfElementsInDST is greater than numberOfElements, the function pads inputArray with zeros to make its number of elements equal numberOfElementsInDST. If numberOfElementsInDST is less than numberOfElements, inputArray is truncated. That is, only the leading numberOfElementsInDST elements in inputArray are used to perform the DST. If numberOfElementsInDST is less than or equal to zero, the function uses numberOfElements as numberOfElementsInDST. |
Output | ||
Name | Type | Description |
outputArray | double [] | The DST of inputArray. |
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 8.0 and later