#include "grasp.h" static char *rcsid="Development code"; #define RC(row,col,size) ((row)+(size)*(col)) /* clapack packing conventions */ typedef float real; /* from f2c.h */ typedef struct { real r, i; } complex; /* from f2c.h */ int calc_rho(int offset,int correlation_width,float threshold,float *rp_signal,float *ip_signal, int nenv_chan,float **rp_env,float **ip_env,float *rho2_pairwise,complex *A,complex *B,float *modx2sum) { int k,n,row,col; n=nenv_chan; /* Size of matrix */ /*************************************************************/ /* */ /* Construct averages over band length correlation_width */ /* */ /*************************************************************/ /* Initialise all sums to zero ... */ for (col=0;col