Reusable C++ DSP code library
  • C++ 99.7%
  • Makefile 0.3%
Find a file
2019-01-18 15:50:04 +01:00
tests stay c++11 compatible 2018-10-25 08:57:58 +02:00
.gitignore Initial commit 2018-03-02 14:04:46 +01:00
coeffs.hh renamed Window and WinFunc to Coeffs and CoeffsFunc and moved to own header 2019-01-03 19:44:31 +01:00
complex.hh made Complex constexpr 2019-01-17 14:07:16 +01:00
const.hh need to add L to get full precision for long doubles 2019-01-18 15:50:04 +01:00
fft.hh use cos() and sin() to compute factors 2019-01-15 22:55:28 +01:00
filter.hh added FIR LPF, HPF and BPF 2019-01-03 21:57:39 +01:00
kahan.hh added same() method to Kahan summation 2018-03-03 12:14:22 +01:00
LICENSE Initial commit 2018-03-02 14:04:46 +01:00
pcm.hh added default virtual destructors to interfaces 2018-10-26 12:35:30 +02:00
README.md added FIR LPF, HPF and BPF 2019-01-03 21:57:39 +01:00
regression.hh add default constructor 2018-08-19 15:45:00 +02:00
resampler.hh moved sinc() to utils 2019-01-03 21:17:21 +01:00
spline.hh give it a default constructor 2018-08-27 22:53:11 +02:00
utils.hh added delta() and decibel() to utils 2019-01-03 21:20:29 +01:00
wav.hh stay c++11 compatible 2018-10-25 08:57:58 +02:00
window.hh moved sinc() to utils 2019-01-03 21:17:21 +01:00

This is a work in progress and a long overdue attempt to bring all our DSP code together and make it reusable for our future projects.

Before using any of this you should enter the tests directory and execute "make". This will check if your compiler is able to create binaries that are able to produce correct results when executed.

What we have included so far:

kahan.hh

When working with Floating-point arithmetic we soon realize, that addition is not necessarily associative. For example, whenever we need to add values with an ever decreasing magnitude to a running sum with an ever increasing magnitude, the Kahan summation algorithm comes in handy and helps keeping the error growth small.

window.hh

Implemented are the follwing Window functions:

filter.hh

Implemented are the following finite impulse response filters:

const.hh

Some constants we need

pcm.hh

Interface for reading and writing PCM data

wav.hh

Read and write WAV files

spline.hh

Algorithm for computing uniform and natural cubic splines Very useful for data interpolation.

regression.hh

Implemented Simple linear regression for Regression analysis of data.

complex.hh

Faster alternative (no Inf/NaN handling) to the std::complex implementation.

fft.hh

Mixed-radix decimation-in-time fast Fourier transform

utils.hh

Some everyday helpers:

resampler.hh

When working with Analog-to-digital and Digital-to-analog converters, we often face the ugly truth, that we can't always have a precise Sampling rate. But if we can estimate the Sampling frequency offset, we can correct it by Resampling the sampled data.