class Filter
extends java.lang.Object
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
convolve(float[] x,
int x_offset,
float[] h,
float[] y,
int l)
Convolve vectors x and h and put result in y.
|
(package private) static void |
residu(float[] a,
int a_offset,
float[] x,
int x_offset,
float[] y,
int y_offset,
int l)
Filter input vector with all-zero filter A(Z).
|
(package private) static void |
syn_filt(float[] a,
int a_offset,
float[] x,
int x_offset,
float[] y,
int y_offset,
int l,
float[] mem,
int mem_offset,
int update)
Filter with synthesis filter 1/A(z).
|
static void convolve(float[] x, int x_offset, float[] h, float[] y, int l)
x
- input : input vector x[0:l]x_offset
- input : input vector offseth
- input : impulse response or second input h[0:l]y
- output: x convolved with h , y[0:l]l
- input : dimension of all vectorsstatic void syn_filt(float[] a, int a_offset, float[] x, int x_offset, float[] y, int y_offset, int l, float[] mem, int mem_offset, int update)
a
- input : predictor coefficients a[0:m]a_offset
- input : predictor coefficients a offsetx
- input : excitation signalx_offset
- input : excitation signal offsety
- output: filtered output signaly_offset
- output: filtered output signal offsetl
- input : vector dimensionmem
- in/out: filter memorymem_offset
- input : filter memory ofsetupdate
- input : 0 = no memory update, 1 = updatestatic void residu(float[] a, int a_offset, float[] x, int x_offset, float[] y, int y_offset, int l)
a
- input : prediction coefficients a[0:m+1], a[0]=1.a_offset
- input : prediction coefficients a offsetx
- input : input signal x[0:l-1], x[-1:m] are neededx_offset
- input : input signal x offsety
- output: output signal y[0:l-1].
NOTE: x[] and y[] cannot point to same arrayy_offset
- input : output signal y offsetl
- input : dimension of x and y
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.