dcbias.c File Reference

#include "f2c.h"

Include dependency graph for dcbias.c:

Go to the source code of this file.

Functions

int dcbias_ (integer *len, real *speech, real *sigout)


Function Documentation

int dcbias_ ( integer len,
real speech,
real sigout 
)

Definition at line 79 of file dcbias.c.

Referenced by analys_().

00080 {
00081     /* System generated locals */
00082     integer i__1;
00083 
00084     /* Local variables */
00085     real bias;
00086     integer i__;
00087 
00088 /*    Arguments */
00089 /*       Local variables that need not be saved */
00090     /* Parameter adjustments */
00091     --sigout;
00092     --speech;
00093 
00094     /* Function Body */
00095     bias = 0.f;
00096     i__1 = *len;
00097     for (i__ = 1; i__ <= i__1; ++i__) {
00098    bias += speech[i__];
00099     }
00100     bias /= *len;
00101     i__1 = *len;
00102     for (i__ = 1; i__ <= i__1; ++i__) {
00103    sigout[i__] = speech[i__] - bias;
00104     }
00105     return 0;
00106 } /* dcbias_ */


Generated on Thu Apr 16 06:30:37 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6