# Piecewise sinusoidal signal (pw_wavy)#

## Description#

The function pw_wavy simulates a sum-of-sine signal $$y_t=\sin(2\pi f_1 t)+\sin(2\pi f_2 t)$$ where $$t=0,\dots,T-1$$. The frequency vector $$[f_1, f_2]$$ alternates between $$[0.075, 0.1]$$ and $$[0.1, 0.125]$$ at each change point index. Gaussian white noise can be added to the signal.

Top: signal example. Bottom: associated spectrogram.

## Usage#

import numpy as np