Convolution
JavaScript is disabled on your browser.
br.usp.ime.dspbenchmarking.algorithms
Class Convolution
- java.lang.Object
-
- br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
-
- br.usp.ime.dspbenchmarking.algorithms.StressAlgorithm
-
- br.usp.ime.dspbenchmarking.algorithms.Convolution
-
public class Convolution extends StressAlgorithm
A random FIR filter that may vary it's length. The idea is just to be able to know if arbitrary filters of a given size are feasible in a specific device.
-
-
Field Summary
Fields Modifier and Type Field and Description private double[]
coef
-
Fields inherited from class br.usp.ime.dspbenchmarking.algorithms.StressAlgorithm
stressParameter
-
Fields inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
blockSize, parameter1, sampleRate
-
-
Constructor Summary
Constructors Constructor and Description Convolution(int sRate, int bSize, int convSize)
Configure the convolution algorithm.
-
Method Summary
Methods Modifier and Type Method and Description private void
calcCoef()
This calculates random coefficients to be used during a filter's comptuation.java.lang.String
getAlgorithmName()
void
perform(double[] buffer)
Performprivate double
wmean(double[] buffer, int n)
-
Methods inherited from class br.usp.ime.dspbenchmarking.algorithms.StressAlgorithm
setStressParameter
-
Methods inherited from class br.usp.ime.dspbenchmarking.algorithms.DspAlgorithm
getBlockSize, getParameter1, getSampleRate, setBlockSize, setParams
-
-
-
-
Constructor Detail
-
Convolution
public Convolution(int sRate, int bSize, int convSize)
Configure the convolution algorithm.- Parameters:
sRate
-bSize
-convSize
-
-
-
Method Detail
-
calcCoef
private void calcCoef()
This calculates random coefficients to be used during a filter's comptuation.
-
perform
public void perform(double[] buffer)
Perform- Specified by:
perform
in classDspAlgorithm
-
wmean
private double wmean(double[] buffer, int n)
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in classDspAlgorithm
- Returns:
- The name of the algorithm.
-
-