FftAlgorithm
JavaScript is disabled on your browser.
br.usp.ime.dspbenchmarking.algorithms
Class FftAlgorithm
- java.lang.Object
-
- br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
-
- br.usp.ime.dspbenchmarking.algorithms.FftAlgorithm
-
public class FftAlgorithm extends DspAlgorithm
A simple algorithm that calculates a one way FFT.
-
-
Field Summary
Fields Modifier and Type Field and Description private FFT
fft
-
Fields inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
blockSize, parameter1, sampleRate
-
-
Constructor Summary
Constructors Constructor and Description FftAlgorithm(int sRate, int bSize)
Constructor.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getAlgorithmName()
void
perform(double[] real)
Perform a one-way FFT.void
setBlockSize(int bSize)
Reconfigure the FFT when block size changes.-
Methods inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
getBlockSize, getParameter1, getSampleRate, setParams
-
-
-
-
Field Detail
-
fft
private FFT fft
-
-
Method Detail
-
perform
public void perform(double[] real)
Perform a one-way FFT.- Specified by:
perform
in classDspAlgorithm
-
setBlockSize
public void setBlockSize(int bSize)
Reconfigure the FFT when block size changes.- Overrides:
setBlockSize
in classDspAlgorithm
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in classDspAlgorithm
- Returns:
- The name of the algorithm.
-
-