diff --git a/Notebooks/helpers.py b/Notebooks/helpers.py new file mode 120000 index 0000000..4e03f4d --- /dev/null +++ b/Notebooks/helpers.py @@ -0,0 +1 @@ +../server/helpers.py \ No newline at end of file diff --git a/server/helpers.py b/server/helpers.py index 1a04e94..e2dfaed 100644 --- a/server/helpers.py +++ b/server/helpers.py @@ -76,10 +76,11 @@ def get_random_signal(nstep, a_range = (-1, 1), b_range = (2, 10), signal_type = def get_identification_signal(size): # Base random signal - rand_signal = get_random_signal(size, signal_type = 'prbs') + rand_signal = get_random_signal(size, signal_type = 'analog') # Integrator (cumulative sum) cum_signal = 3/size * np.ones((1, size)) cum_signal = np.cumsum(cum_signal) + cum_signal = 0 # Combine signals and clip signal to [-1, 1] range ident_signal = rand_signal + cum_signal ident_signal = np.where(ident_signal < -1, -1, ident_signal)