Recurrent neural networks - predicting periodic signals
Oscillators are circuits that produce specific, periodic waveforms such as square, triangular, sawtooth, and sinusoidal. In order to generate output, oscillators generally use some form of active device-lamp, which is surrounded by resistors, capacitors, and inductors. Two main classes of oscillators are relaxation and sinusoidal. Triangular, sawtooth and other non-sinusoidal waveforms are generated using relaxation oscillators, while sinusoidal oscillators consist of amplifiers with external components to generate oscillation. Normally, no harmonics are present in pure sine waves and they consist of a single frequency.
Getting ready...
The task is to predict a cosine from a noisy sine wave. 5Hz frequency waves are used for the sine wave with some normally distributed noise and a smooth cosine wave. The dataset created is a set of 10 sequences, each of which consists of 40 observations.
How to do it...
The following packages need to be...