📄 xcor.cwp.lib
字号:
XCOR - Compute z = x cross-correlated with yxcor compute z= x cross-correlated with yFunction Prototype:void xcor (int lx, int ifx, float *x, int ly, int ify, float *y , int lz, int ifz, float *z);Input:lx length of x arrayifx sample index of first xx array[lx] to be cross-correlated with yly length of y arrayify sample index of first yy array[ly] with which x is to be cross-correlatedlz length of z arrayifz sample index of first zOutput:z array[lz] containing x cross-correlated with yNotes:See notes for convolution function conv().The operation "x cross correlated with y" is defined to be: ifx+lx-1 z[i] = sum x[j]*y[i+j] ; i = ifz,...,ifz+lz-1 j=ifxThis function performs cross-correlation by(1) reversing the samples in the x array while copying them to a temporary array, and(2) calling function conv() with ifx set to 1-ifx-lx.Assuming that the overhead of reversing the samples in x is negligible,this method enables cross-correlation to be performed as efficiently asconvolution, while reducing the amount of code that must be optimizedand maintained.Author: Dave Hale, Colorado School of Mines, 11/23/91
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -