Code for demonstrating stochastic resonance in time-series data