Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.g729
Class CorFunc

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.g729.CorFunc

 class CorFunc
extends Object

Functions corr_xy2() and cor_h_x().

Author:
Lubomir Marinov (translation of ITU-T C source code to Java)

Constructor Summary
CorFunc()
           
 
Method Summary
(package private) static void cor_h_x(float[] h, float[] x, float[] d)
          Compute correlations of input response h[] with the target vector X[].
(package private) static void corr_xy2(float[] xn, float[] y1, float[] y2, float[] g_coeff)
          Compute the correlation products needed for gain computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorFunc

CorFunc()
Method Detail

corr_xy2

static void corr_xy2(float[] xn,
                     float[] y1,
                     float[] y2,
                     float[] g_coeff)
Compute the correlation products needed for gain computation.

Parameters:
xn - input : target vector x[0:l_subfr]
y1 - input : filtered adaptive codebook vector
y2 - input : filtered 1st codebook innovation
g_coeff - output: , -2 , and 2

cor_h_x

static void cor_h_x(float[] h,
                    float[] x,
                    float[] d)
Compute correlations of input response h[] with the target vector X[].

Parameters:
h - (i) :Impulse response of filters
x - (i) :Target vector
d - (o) :Correlations between h[] and x[]

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.