Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
IIR_filter.h
- Committer:
- altb
- Date:
- 2018-09-28
- Revision:
- 1:bf62e74fbcf3
- Parent:
- 0:e2a7d7f91e49
File content as of revision 1:bf62e74fbcf3:
class IIR_filter{ public: IIR_filter(float T, float Ts); IIR_filter(float T, float Ts, float K); IIR_filter(float w0, float D, float Ts, float K); IIR_filter(float *b, float *a, int nb_, int na_); float operator()(float u){ return filter((double)u); } virtual ~IIR_filter(); void reset(float); float filter(double); private: unsigned int nb; unsigned int na; double *B; double *A; double *uk; double *yk; double K; };