Simulates a Sinusoidal Process Process with parameter \(\alpha^2\) and \(\beta\)
gen_sin(N, alpha2 = 9e-04, beta = 0.06, U = 1)
sn A vec
containing the sinusoidal process.
An integer
for signal length.
A double
that contains the squared amplitude parameter alpha2.
A double
that contains the angular frequency parameter beta.
The function first generates a initial cycle oscillation at t=0 from a Uniform law with parameter a = 0 and b = 2 * pi and then compute the signal from its definition $$X_t = \alpha \sin(\beta t + U)$$.