⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 equalize.h

📁 Fax and soft modem library source code.
💻 H
字号:
struct equalizer
  { equalizer(float d)		  { delta = d; reset(); }
    void reset();
    void insert(complex);				  /* put new raw value into equalizer		    */
    complex get();					  /* get equalized value			    */
    void update(complex eps)	   { upd(eps, np); }	  /* given eps, update coeffs			    */
    void short_update(complex eps) { upd(eps, 2);  }	  /* ditto, use short window	// WAS 1	    */
    int getdt();					  /* get timing offset				    */
    void shift(int);					  /* shift coefficients vector			    */
    void print(char*);					  /* print coefficients vector			    */

private:
    void upd(complex, int);
    const int size = 16;				  /* power of 2 .ge. (2*np+1)			    */
    const int np = 7;					  /* np to the left of me, np to the right of me    */
    complex coeffs[2*np+1];				  /* vector of coefficients			    */
    complex in[size];					  /* circular buffer				    */
    int next;						  /* ptr to next place to insert		    */
    float delta;
  };

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -