org.nd4j.linalg.fft
Class FFT
- java.lang.Object
-
- org.nd4j.linalg.fft.FFT
-
public class FFT extends java.lang.ObjectFFT and IFFT
-
-
Constructor Summary
Constructors Constructor and Description FFT()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static IComplexNDArrayfft(IComplexNDArray inputC)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayfft(IComplexNDArray inputC, int numElements)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayfft(IComplexNDArray inputC, int numElements, int dimension)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayfft(INDArray input)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayfft(INDArray transform, int numElements)FFT along a particular dimensionstatic IComplexNDArrayfft(INDArray transform, int numElements, int dimension)FFT along a particular dimensionstatic IComplexNDArrayfftn(IComplexNDArray transform)FFT on the whole array (n is equal the first dimension shape)static IComplexNDArrayfftn(IComplexNDArray transform, int dimension, int numElements)Performs FFT along the first non singleton dimension of applyTransformToOrigin.static IComplexNDArrayfftn(INDArray transform)FFT on the whole array (n is equal the first dimension shape)static IComplexNDArrayfftn(INDArray transform, int dimension, int numElements)Computes the fft along the first non singleton dimension of applyTransformToOrigin when it is a matrixstatic IComplexNDArrayifft(IComplexNDArray inputC)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayifft(IComplexNDArray inputC, int numElements, int dimension)1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector.static IComplexNDArrayifft(INDArray transform, int numElements)FFT along a particular dimensionstatic IComplexNDArrayifft(INDArray transform, int numElements, int dimension)IFFT along a particular dimensionstatic IComplexNDArrayifftn(IComplexNDArray transform)static IComplexNDArrayifftn(IComplexNDArray transform, int dimension)static IComplexNDArrayifftn(IComplexNDArray transform, int dimension, int numElements)ND IFFTstatic IComplexNDArrayifftn(INDArray transform)static IComplexNDArrayifftn(INDArray transform, int dimension, int numElements)ND IFFT, computes along the first on singleton dimension of applyTransformToOriginstatic IComplexNDArrayirfft(IComplexNDArray arr)static IComplexNDArrayirfft(IComplexNDArray arr, int dimension)static IComplexNDArrayirfftn(IComplexNDArray arr)static IComplexNDArrayrawfft(IComplexNDArray transform, int n, int dimension)Underlying fft algorithmstatic IComplexNDArrayrawfftn(IComplexNDArray transform, int[] shape, int[] axes)static IComplexNDArrayrawifft(IComplexNDArray transform, int dimension)static IComplexNDArrayrawifft(IComplexNDArray transform, int n, int dimension)static IComplexNDArrayrawifftn(IComplexNDArray transform, int[] shape, int[] axes)
-
-
-
Method Detail
-
fft
public static IComplexNDArray fft(INDArray transform, int numElements)
FFT along a particular dimension- Parameters:
transform- the ndarray to applyTransformToOriginnumElements- the desired number of elements in each fft- Returns:
- the ffted output
-
fft
public static IComplexNDArray fft(IComplexNDArray inputC)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
inputC- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
fft
public static IComplexNDArray fft(INDArray input)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
input- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
fft
public static IComplexNDArray fft(INDArray transform, int numElements, int dimension)
FFT along a particular dimension- Parameters:
transform- the ndarray to applyTransformToOriginnumElements- the desired number of elements in each fft- Returns:
- the ffted output
-
fft
public static IComplexNDArray fft(IComplexNDArray inputC, int numElements)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
inputC- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
fft
public static IComplexNDArray fft(IComplexNDArray inputC, int numElements, int dimension)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
inputC- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
ifft
public static IComplexNDArray ifft(INDArray transform, int numElements, int dimension)
IFFT along a particular dimension- Parameters:
transform- the ndarray to applyTransformToOriginnumElements- the desired number of elements in each fftdimension- the dimension to do fft along- Returns:
- the iffted output
-
ifft
public static IComplexNDArray ifft(IComplexNDArray inputC)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
inputC- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
ifft
public static IComplexNDArray ifft(INDArray transform, int numElements)
FFT along a particular dimension- Parameters:
transform- the ndarray to applyTransformToOriginnumElements- the desired number of elements in each fft- Returns:
- the ffted output
-
ifft
public static IComplexNDArray ifft(IComplexNDArray inputC, int numElements, int dimension)
1d discrete fourier applyTransformToOrigin, note that this will throw an exception if the passed in input isn't a vector. See matlab's fft2 for more information- Parameters:
inputC- the input to applyTransformToOrigin- Returns:
- the the discrete fourier applyTransformToOrigin of the passed in input
-
ifftn
public static IComplexNDArray ifftn(INDArray transform, int dimension, int numElements)
ND IFFT, computes along the first on singleton dimension of applyTransformToOrigin- Parameters:
transform- the ndarray to applyTransformToOrigindimension- the dimension to iterate alongnumElements- the desired number of elements in each fft- Returns:
- the reverse ifft of the passed in array
-
irfftn
public static IComplexNDArray irfftn(IComplexNDArray arr)
-
irfft
public static IComplexNDArray irfft(IComplexNDArray arr, int dimension)
-
irfft
public static IComplexNDArray irfft(IComplexNDArray arr)
-
ifftn
public static IComplexNDArray ifftn(IComplexNDArray transform, int dimension, int numElements)
ND IFFT- Parameters:
transform- the ndarray to applyTransformToOrigindimension- the dimension to iterate alongnumElements- the desired number of elements in each fft- Returns:
- the transformed array
-
fftn
public static IComplexNDArray fftn(IComplexNDArray transform, int dimension, int numElements)
Performs FFT along the first non singleton dimension of applyTransformToOrigin. This means- Parameters:
transform- the ndarray to applyTransformToOrigindimension- the dimension to iterate alongnumElements- the desired number of elements in each fft along each dimension from each slice (note: each slice)- Returns:
- the transformed array
-
fftn
public static IComplexNDArray fftn(INDArray transform, int dimension, int numElements)
Computes the fft along the first non singleton dimension of applyTransformToOrigin when it is a matrix- Parameters:
transform- the ndarray to applyTransformToOrigindimension- the dimension to do fft alongnumElements- the desired number of elements in each fft- Returns:
- the fft of the specified ndarray
-
fftn
public static IComplexNDArray fftn(INDArray transform)
FFT on the whole array (n is equal the first dimension shape)- Parameters:
transform- the matrix to applyTransformToOrigin- Returns:
- the ffted array
-
fftn
public static IComplexNDArray fftn(IComplexNDArray transform)
FFT on the whole array (n is equal the first dimension shape)- Parameters:
transform- the matrix to applyTransformToOrigin- Returns:
- the ffted array
-
ifftn
public static IComplexNDArray ifftn(IComplexNDArray transform, int dimension)
-
ifftn
public static IComplexNDArray ifftn(IComplexNDArray transform)
-
ifftn
public static IComplexNDArray ifftn(INDArray transform)
-
rawifftn
public static IComplexNDArray rawifftn(IComplexNDArray transform, int[] shape, int[] axes)
-
rawfftn
public static IComplexNDArray rawfftn(IComplexNDArray transform, int[] shape, int[] axes)
-
rawfft
public static IComplexNDArray rawfft(IComplexNDArray transform, int n, int dimension)
Underlying fft algorithm- Parameters:
transform- the ndarray to transformn- the desired number of elementsdimension- the dimension to do fft along- Returns:
- the transformed ndarray
-
rawifft
public static IComplexNDArray rawifft(IComplexNDArray transform, int n, int dimension)
-
rawifft
public static IComplexNDArray rawifft(IComplexNDArray transform, int dimension)
-
-
DMelt 3.0 © DataMelt by jWork.ORG