Class LibMatrixSTFT
java.lang.Object
org.apache.sysds.runtime.matrix.data.LibMatrixSTFT
Liberary file containing methods to perform short time fourier transformations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixBlock[]stft(MatrixBlock re, int windowSize, int overlap, int threads) Function to perform STFT on a given matrices with windowSize and overlap.static MatrixBlock[]stft(MatrixBlock re, MatrixBlock im, int windowSize, int overlap, int threads) Function to perform STFT on two given matrices with windowSize and overlap.
-
Constructor Details
-
LibMatrixSTFT
public LibMatrixSTFT()
-
-
Method Details
-
stft
public static MatrixBlock[] stft(MatrixBlock re, MatrixBlock im, int windowSize, int overlap, int threads) Function to perform STFT on two given matrices with windowSize and overlap. The first one represents the real values and the second one the imaginary values. The output also contains one matrix for the real and one for the imaginary values. The results of the fourier transformations are appended to each other in the output.- Parameters:
re- Matrix object representing the real valuesim- Matrix object representing the imaginary valueswindowSize- Size of windowoverlap- Size of overlapthreads- The number of threads to use- Returns:
- array of two matrix blocks
-
stft
Function to perform STFT on a given matrices with windowSize and overlap. The matrix represents the real values. The output contains one matrix for the real and one for the imaginary values. The results of the fourier transformations are appended to each other in the output.- Parameters:
re- matrix object representing the real valueswindowSize- size of windowoverlap- size of overlapthreads- The number of threads to use- Returns:
- array of two matrix blocks
-