Update subtraction_arbitrary_pred authored by Kentaro Mogushi's avatar Kentaro Mogushi
...@@ -18,3 +18,36 @@ plt.close() ...@@ -18,3 +18,36 @@ plt.close()
![Screen_Shot_2021-03-16_at_6.57.16_PM](uploads/8992e1233454c7f6b69a4b569b470196/Screen_Shot_2021-03-16_at_6.57.16_PM.png) ![Screen_Shot_2021-03-16_at_6.57.16_PM](uploads/8992e1233454c7f6b69a4b569b470196/Screen_Shot_2021-03-16_at_6.57.16_PM.png)
# test waveform 1
```
t = np.linspace(0, 8, pred_test_ts.shape[-1])
a = np.sin(2*np.pi *t)
pred_test_ts[test_index] = a
plt.plot(t, pred_test_ts[test_index])
plt.savefig('test.png')
plt.close()
```
![Screen_Shot_2021-03-16_at_6.59.24_PM](uploads/fb8e2f585851210c5f93d73ebb61394a/Screen_Shot_2021-03-16_at_6.59.24_PM.png)
![Screen_Shot_2021-03-16_at_7.00.38_PM](uploads/a5efc7f785548178f4dbda90c3843d1e/Screen_Shot_2021-03-16_at_7.00.38_PM.png)
# 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
plt.plot(t, pred_test_ts[test_index])
plt.xlim(0,1)
plt.savefig('test.png')
plt.close()
```
![Screen_Shot_2021-03-16_at_7.01.47_PM](uploads/af4b685979590ec7e8363b65924c3fa6/Screen_Shot_2021-03-16_at_7.01.47_PM.png)
- Because the scattered light glitch has a wave with a frequency of 30 Hz, the some of them is subtracted.
![Screen_Shot_2021-03-16_at_7.03.00_PM](uploads/b8fa2f2898b95a5934eb9e9cb6ed33af/Screen_Shot_2021-03-16_at_7.03.00_PM.png)