📄 pgc.h
字号:
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the PGC_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// PGC_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef PGC_EXPORTS
#define PGC_API __declspec(dllexport)
#else
#define PGC_API __declspec(dllimport)
#endif
// This class is exported from the PGC.dll
class PGC_API CPGC {
public:
CPGC(void);
// TODO: add your methods here.
};
PGC_API int Normal(double *y, double *x, int len); //归一化处理
PGC_API int Multi(double *x1, double *x2, int len); //相乘混频, 结果存到x1
PGC_API int FIRCoef(double *firCoef, double fs, double fl, int taps, int nType); //计算单位脉冲响应hd(n)
PGC_API double Bessel(double x, int len); //计算贝塞尔函数
PGC_API int Kaiser(double *ksCoef, double beta, int len); //计算Kaiser窗
PGC_API int Conv(double *y, double *x, int len, double *coef, int taps); //卷积
PGC_API int FIR(double *y, double *x, int len, double *firCoef, double *ksCoef, int taps, int nType); //FIR滤波
PGC_API int DSamp(double *x, int len, int nRatio); //降采样
PGC_API int Diff(double *x, int len); //微分
PGC_API int Sub(double *x1, double *x2, int len); //相减, 结果存到x1
PGC_API int Intg(double *x, int len); //积分
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -