org.knowceans.sandbox
Class Convolver

java.lang.Object
  extended by 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

Constructor Summary
Convolver()
           
 
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
 

Constructor Detail

Convolver

public Convolver()
Method Detail

convolve

public static void convolve(double[] xx,
                            double[] yy,
                            double[] hh)
performs overlap save convolution on the input signals xx

Parameters:
xx - input signal frame
yy - output signal frame (length = input + IR - 1)
hh - time-domain impulse response
framesize - 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 vector
yy - output signal frame vector
hh - time-domain impulse response
framesize - 2^n