|
|
\[\[ \TOC \]\]
|
|
|
|
|
|
# Sanity check of subtraction with an arbitrary predicted waveform.
|
|
|
|
|
|
Because the subtraction is made by dividing the segments and find the amplitude and phase by the least square method,I am concern with what if I use an arbitrary predicted waveform. Do I get no subtraction as wished because the glitch waveform differs from the true glitch waveform?
|
|
|
|
|
|
# test waveform 0
|
|
|
## test waveform 0
|
|
|
|
|
|
```
|
|
|
t = np.linspace(0, 8, pred_test_ts.shape[-1])
|
... | ... | @@ -19,7 +21,7 @@ plt.close() |
|
|

|
|
|
|
|
|
|
|
|
# test waveform 1
|
|
|
## test waveform 1
|
|
|
|
|
|
```
|
|
|
t = np.linspace(0, 8, pred_test_ts.shape[-1])
|
... | ... | @@ -37,7 +39,6 @@ plt.close() |
|
|
# test waveform 2 (30 Hz)
|
|
|
|
|
|
```
|
|
|
#------------
|
|
|
t = np.linspace(0, 8, pred_test_ts.shape[-1])
|
|
|
a = np.sin(2*np.pi*30 *t)
|
|
|
pred_test_ts[test_index] = a
|
... | ... | @@ -52,12 +53,12 @@ plt.close() |
|
|
|
|
|

|
|
|
|
|
|
# test waveform with 60 Hz
|
|
|
## test waveform with 60 Hz
|
|
|
|
|
|
- no subtraction
|
|
|

|
|
|
|
|
|
# test waveform with 100 Hz
|
|
|
## test waveform with 100 Hz
|
|
|
|
|
|
- no subtraction
|
|
|
|
... | ... | |