crosscorr
cross-correlation
Synopsis
#include <stats.h>
void crosscorrf(a,b,n,m,c)
const float a[];
const float b[];
int n;
int m;
float c[];
void crosscorr_fr16(a,b,n,m,c)
const fract16 a[];
const fract16 b[];
int n;
int m;
fract16 c[];
Description
This function computes the cross-correlation of the input elements con-
tained within input vector
output vector
c
Algorithm
− −
n k
1
1
∑
=
c
* (
a
k
n
=
j
0
where k={0,1,...,m-1}
Domain
38
-3.4 x 10
to +3.4 x 10
-1.0 to +1.0
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
and input vector
a
.
*
b
)
+
j
j k
38
DSP Run-Time Library
/* Input vector a
/* Input vector b
/* Number of input samples
/* Lag count
/* Pointer to output vector c */
/* Input vector a
/* Input vector b
/* Number of input samples
/* Lag count
/* Pointer to output vector c */
, and stores the result to
b
for
crosscorrf( )
for
crosscorr_fr16( )
*/
*/
*/
*/
*/
*/
*/
*/
4-55
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers