org.knowceans.sandbox
Class Convolver
java.lang.Object
org.knowceans.sandbox.Convolver
public class Convolver
- extends java.lang.Object
Convolver performs fast convolution on the input signals, using the FIR
filter on a signal vector.
- Author:
- gregor
Method Summary |
static void |
convolve(double[] xx,
double[] yy,
double[] hh)
performs overlap save convolution on the input signals xx |
void |
init(double[] hh)
|
void |
overlapSave(double[] xx,
double[] yy)
performs overlap save convolution on the input signals xx |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Convolver
public Convolver()
convolve
public static void convolve(double[] xx,
double[] yy,
double[] hh)
- performs overlap save convolution on the input signals xx
- Parameters:
xx
- input signal frameyy
- output signal frame (length = input + IR - 1)hh
- time-domain impulse responseframesize
- 2^n
init
public void init(double[] hh)
- Parameters:
hh
- framesize
-
overlapSave
public void overlapSave(double[] xx,
double[] yy)
- performs overlap save convolution on the input signals xx
- Parameters:
xx
- input signal frame vectoryy
- output signal frame vectorhh
- time-domain impulse responseframesize
- 2^n