Asterisk - The Open Source Telephony Project GIT-master-7e7a603
Functions
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

◆ dcbias_()

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

Definition at line 79 of file dcbias.c.

80{
81 /* System generated locals */
82 integer i__1;
83
84 /* Local variables */
85 real bias;
86 integer i__;
87
88/* Arguments */
89/* Local variables that need not be saved */
90 /* Parameter adjustments */
91 --sigout;
92 --speech;
93
94 /* Function Body */
95 bias = 0.f;
96 i__1 = *len;
97 for (i__ = 1; i__ <= i__1; ++i__) {
98 bias += speech[i__];
99 }
100 bias /= *len;
101 i__1 = *len;
102 for (i__ = 1; i__ <= i__1; ++i__) {
103 sigout[i__] = speech[i__] - bias;
104 }
105 return 0;
106} /* dcbias_ */
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
float real
Definition: lpc10.h:79
INT32 integer
Definition: lpc10.h:80

References len().

Referenced by analys_().