Commit graph

81 commits

Author SHA1 Message Date
Ahmet Inan
c4b837b045 time to embrace #pragma once 2019-01-19 14:07:07 +01:00
Ahmet Inan
a85cbcf6ba removed exp() and replaced hypot() with sqrt(norm()) 2019-01-19 13:59:52 +01:00
Ahmet Inan
c81732c768 use UnitCircle where possible in window functions 2019-01-19 09:58:31 +01:00
Ahmet Inan
cf54a8e431 make it work for negative n too 2019-01-18 22:21:51 +01:00
Ahmet Inan
692bfa4d31 use UnitCircle to get constants 2019-01-18 17:20:13 +01:00
Ahmet Inan
15843df336 added UnitCircle with sine and cosine functions 2019-01-18 16:59:11 +01:00
Ahmet Inan
ba89cc21d6 need to add L to get full precision for long doubles 2019-01-18 15:50:04 +01:00
Ahmet Inan
69c3080931 made Complex constexpr 2019-01-17 14:07:16 +01:00
Ahmet Inan
79a6a85b47 reorganized and recomputed constants 2019-01-17 12:12:12 +01:00
Ahmet Inan
f71b7ae711 use cos() and sin() to compute factors 2019-01-15 22:55:28 +01:00
Ahmet Inan
6d8e0dbc94 removed unused function 2019-01-15 22:36:00 +01:00
Ahmet Inan
5462e20751 added 1/sqrt(2) constant 2019-01-15 22:23:27 +01:00
Ahmet Inan
00501fa433 added FIR LPF, HPF and BPF 2019-01-03 21:57:39 +01:00
Ahmet Inan
f3c22ed3cc added delta() and decibel() to utils 2019-01-03 21:20:29 +01:00
Ahmet Inan
6769872b39 moved sinc() to utils 2019-01-03 21:17:21 +01:00
Ahmet Inan
6c5a418693 renamed Window and WinFunc to Coeffs and CoeffsFunc and moved to own header 2019-01-03 19:44:31 +01:00
Ahmet Inan
f9992b5372 added default virtual destructors to interfaces 2018-10-26 12:35:30 +02:00
Ahmet Inan
75094bb2db stay c++11 compatible 2018-10-25 08:57:58 +02:00
Ahmet Inan
749668d830 added probability density function of the normal distribution 2018-10-07 19:06:49 +02:00
Ahmet Inan
ef6871f94b moved crc and xorshift from DSP to CODE repository 2018-09-20 08:45:26 +02:00
Ahmet Inan
ae658f23f4 improved testing scheme 2018-09-20 08:40:25 +02:00
Ahmet Inan
b5f5948097 added reset() to xorshift 2018-09-17 15:35:05 +02:00
Ahmet Inan
4ff2e0f148 added an resampler for arbitrary rate differences 2018-09-13 11:33:10 +02:00
Ahmet Inan
6780bd4dc1 added some Xorshift PRNGs of George Marsaglia 2018-09-13 10:25:43 +02:00
Ahmet Inan
5270069422 added rate() and channels() to pcm writer interface 2018-09-12 14:43:22 +02:00
Ahmet Inan
d0419241ea made CRC32 example a bit more representative 2018-09-11 10:35:30 +02:00
Ahmet Inan
61b3358cbf added lerp function 2018-09-11 08:09:29 +02:00
Ahmet Inan
7c19098c87 added signum() 2018-09-09 20:24:14 +02:00
Ahmet Inan
f7868833e7 added good() to pcm 2018-09-05 12:30:36 +02:00
Ahmet Inan
8951bd1404 constexpr implies inline on functions 2018-08-30 08:40:20 +02:00
Ahmet Inan
790888bdf4 give it a default constructor 2018-08-27 22:53:11 +02:00
Ahmet Inan
56e793a265 stride can be ommited in the interface 2018-08-27 14:08:20 +02:00
Ahmet Inan
7f64356dde overwrite members directly here 2018-08-27 14:04:39 +02:00
Ahmet Inan
e149e5edc4 added mixed-radix fast Fourier transform
lifted from my fft project and changed interface:
https://github.com/xdsopl/fft
2018-08-25 12:22:58 +02:00
Ahmet Inan
9057df88b0 added faster complex math
This is lifted from my mixed-radix fft project:
https://github.com/xdsopl/fft
2018-08-25 11:25:39 +02:00
Ahmet Inan
e1671026da add default constructor 2018-08-19 15:45:00 +02:00
Ahmet Inan
71ba720dc1 calculate and store intersections and slope 2018-08-18 10:25:19 +02:00
Ahmet Inan
af22ddb8fd added constexpr to constants .. 2018-08-13 20:21:25 +02:00
Ahmet Inan
7344f2d58c added eighth Pi constant 2018-08-12 17:46:52 +02:00
Ahmet Inan
acdb28bdd7 added info methods to PCM interface and WAV reader 2018-08-08 15:20:43 +02:00
Ahmet Inan
beecb3bd2c added simple linear regression 2018-08-08 10:16:28 +02:00
Ahmet Inan
afdceec5cc added half and fourth Pi constant 2018-08-03 21:14:24 +02:00
Ahmet Inan
d3b4529a6e added another example on how to check the result 2018-07-29 10:53:52 +02:00
Ahmet Inan
479f5e0220 added update() helper 2018-07-29 10:50:30 +02:00
Ahmet Inan
afc3c0ae61 LUT only for lower byte needed, remove nibble code 2018-07-29 10:32:00 +02:00
Ahmet Inan
f410522d4a added some more examples to the CRC test 2018-07-29 09:03:53 +02:00
Ahmet Inan
2055276095 dont use template args, it only couses pain and suffering 2018-07-29 08:59:46 +02:00
Ahmet Inan
9ec3f1a544 gitignore crc test binary 2018-07-29 08:33:11 +02:00
Ahmet Inan
e2def0f3c9 use default value 0 if arg to reset() is ommited 2018-07-29 08:32:22 +02:00
Ahmet Inan
b3bede5cea added operator with void args, just returning CRC 2018-07-29 08:11:14 +02:00