DSP Run-Time Library Reference
rms
root mean square
Synopsis
#include <stats.h>
float rmsf(a,n)
const float a[];
int n;
fract16 rms_fr16(a,n)
const fract16 a[];
int n;
Description
This function computes the root mean square of the input elements con-
tained within input vector
Algorithm
−
n
1
∑
2
a
i
=
=
i
0
c
n
Domain
38
-3.4 x 10
to +3.4 x 10
-1.0 to +1.0
4-100
/* Pointer to input vector a
/* Number of input samples
/* Pointer to input vector a
/* Number of input samples
and returns the result.
a
38
for
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for
rmsf( )
rms_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?