![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
The experiment using this program is introduced on "Interface" No.2, CQ publishing Co.,Ltd, 2015. 本プログラムを使った実験は,CQ出版社のインターフェース 2015年2月号で紹介しています.
Dependencies: DSProcessingIO mbed
IIR_Coefficients.hpp@1:5ece9454ba73, 2014-07-29 (annotated)
- Committer:
- CQpub0Mikami
- Date:
- Tue Jul 29 06:55:48 2014 +0000
- Revision:
- 1:5ece9454ba73
- Parent:
- 0:398107c96b1b
ver.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
CQpub0Mikami | 0:398107c96b1b | 1 | //-------------------------------------------------------------- |
CQpub0Mikami | 0:398107c96b1b | 2 | // Coefficients for IIR filter, Order = 6 |
CQpub0Mikami | 0:398107c96b1b | 3 | //-------------------------------------------------------------- |
CQpub0Mikami | 0:398107c96b1b | 4 | // Lowpass filter |
CQpub0Mikami | 0:398107c96b1b | 5 | // Elliptic character |
CQpub0Mikami | 0:398107c96b1b | 6 | // Sampling frequency: 10.00 kHz |
CQpub0Mikami | 0:398107c96b1b | 7 | // Cutoff frequency: 0.50 kHz |
CQpub0Mikami | 0:398107c96b1b | 8 | // Ripples in passband: 0.50 dB |
CQpub0Mikami | 0:398107c96b1b | 9 | // Attenuation in stopband: 40.00 dB |
CQpub0Mikami | 0:398107c96b1b | 10 | |
CQpub0Mikami | 0:398107c96b1b | 11 | #include "Biquad.hpp" |
CQpub0Mikami | 0:398107c96b1b | 12 | |
CQpub0Mikami | 0:398107c96b1b | 13 | using namespace Mikami; |
CQpub0Mikami | 0:398107c96b1b | 14 | |
CQpub0Mikami | 0:398107c96b1b | 15 | const int ORDER_ = 6; |
CQpub0Mikami | 0:398107c96b1b | 16 | |
CQpub0Mikami | 0:398107c96b1b | 17 | const Biquad::Coefs ck_[ORDER_/2] = { |
CQpub0Mikami | 0:398107c96b1b | 18 | { 1.755914E+00f, -7.841154E-01f, -1.200026E+00f, 1.0f}, |
CQpub0Mikami | 0:398107c96b1b | 19 | { 1.834544E+00f, -9.093489E-01f, -1.822074E+00f, 1.0f}, |
CQpub0Mikami | 0:398107c96b1b | 20 | { 1.881858E+00f, -9.801108E-01f, -1.872779E+00f, 1.0f}}; |
CQpub0Mikami | 0:398107c96b1b | 21 | |
CQpub0Mikami | 0:398107c96b1b | 22 | const float g0_ = 1.080597E-02f; |