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