📄 main_correlation.c
字号:
#include "stdlib.h"
#include "stdio.h"
#include "typedef.h"
#include "Correlation.h"
#define Length 80
#define Order 10
void main()
{
Word16 i ;
Word16 Input_A[Length], Input_B[Length] ;
Word32 Corr_Coef[Order] ;
// 产生随机输入数据
Input_A[0] = 3892 ;
Input_B[0] = 10453 ;
for( i = 1 ; i < Length ; i ++ )
{
Input_A[i] = (Word16)((51*(Input_A[i-1])+259)&0xffff) ;
Input_B[i] = (Word16)((37*(Input_B[i-1])+183)&0xffff) ;
}
Correlation( Input_A, Input_B, Corr_Coef, Length, Order ) ;
return ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -