Category Archives: Python

Decision Trees in Python

Code available here: github.com/KevinNJ Overview: So, I was trying to solve XKCD’s infinite resistor problem (xkcd.com/356). After some thought, this method probably won’t be useful, but it still has some interesting applications.  Problem: On a infinite grid, find all paths … Continue reading

Posted in Python | Tagged , | Leave a comment

Short Time Fourier Transform using Python and Numpy

Code available here: github.com/KevinNJ Overview: The Short Time Fourier Transform (STFT) is a special flavor of a Fourier transform where you can see how your frequencies in your signal change through time.  It works by slicing up your signal into … Continue reading

Posted in Python, Signal Processing | Tagged , , , , | 7 Comments

Sallen-Key Filter Design Using Simulated Annealing Optimization

Code can be found here: github.com/KevinNJ Overview: Sallen-Key filters are useful to design because they produce a second order filter response with a really small number of readily available components. Often times the low order of the filter is a good … Continue reading

Posted in Global Optimization, Python, Signal Processing | Tagged , , , | Leave a comment