www.pudn.com > MCORRE1.rar > MCORRE1.C


#include "msp.h" 
void mcorre1(complex x[],complex y[],complex r[],int n,int lag) 
{ 
/*--------------------------------------------------------------------- 
  Routine MCORRE1:To estimate the biased cross-correlation function 
  of complex arrays x and y. If y=x,then it is auto-correlation. 
  input parameters: 
     x  :n dimensioned complex array. 
     y  :n dimensioned complex array. 
     n  :the dimension of x and y. 
     lag:point numbers of correlation. 
  output parameters: 
     r  :lag dimensioned complex array, the correlation function is 
         stored in r(0) to r(lag-1). 
                                      in Chapter 1 and 11 
---------------------------------------------------------------------*/ 
        int m,j,k; 
        for(k=0;k