gapost / DDOfilter

Driven Damped Oscillator filter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DDOfilter - Driven Damped Oscillator filter

part of QDaq (https://gitlab.com/qdaq/qdaq) - Qt-based Data Acquisition

About

A driven damped oscillator system can be used as a low-pass signal filter that has the extra advantage of providing the 1st order time derivative of the signal; thus, it can also be used as a differentiator.

The following figure shows a 0.2 Hz noizy signal filtered by a 1 Hz DDO. The bottom graph shows the signal derivative as obtained by the DDO.

Example

This project contains the following:

  • src/ A templated C++ class implementing the DDO filter, contained in DDO.h, and a command line filtering application ddo.cpp
  • octave/ A set of OCTAVE (https://www.octave.org) scripts for experimenting with the filter
  • doc/ A LaTeX document with the mathematics

The project can be built with cmake, preferably with the following commands

mkdir .build
cd .build
cmake ..
make (or nmake)

About

Driven Damped Oscillator filter


Languages

Language:MATLAB 49.1%Language:C++ 48.2%Language:CMake 2.7%