Class LibMatrixSTFT
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.LibMatrixSTFT
-
public class LibMatrixSTFT extends Object
Liberary file containing methods to perform short time fourier transformations.
-
-
Constructor Summary
Constructors Constructor Description LibMatrixSTFT()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
public static MatrixBlock[] stft(MatrixBlock re, int windowSize, int overlap, int threads)
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
-
-