DSP Run-Time Library Reference
mean
mean
Synopsis
#include <stats.h>
fract16 mean_fr16(a,n)
const fract16 a[];
int n;
float meanf(a,n)
const float a[];
int n;
Description
This function computes the mean of the input elements contained within
input vector
a
Algorithm
−
1
n
1
∑
=
c
* (
a
)
i
n
=
i
0
Domain
38
-3.4 x 10
to +3.4 x 10
-1.0 to +1.0
4-86
and returns the result.
38
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
/* Input vector a
/* Number of input samples
/* Input vector a
/* Number of input samples
for
meanf( )
for
mean_fr16( )
for ADSP-219x DSPs
*/
*/
*/
*/
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?