Creates a time series of length n (depending on the number of rows in the input data) by repeating one of the four patterns and adds this time series in the last column of the input data.
The four possible patterns are:
- Saw Tooth Wave: A time series which ramps upward and then sharply drops. Named after its resemblance to the teeth of a saw.
- Sine Wave: A time series which represents a sine wave.
- Square Wave: A time series in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum.
- Triangle Wave: A time series which ramps upwards and then decreases again.