Removed cumulative signal from identification signal
This commit is contained in:
parent
0184281da7
commit
e82121b5c7
2 changed files with 3 additions and 1 deletions
1
Notebooks/helpers.py
Symbolic link
1
Notebooks/helpers.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
../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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue