Changes
Page history
Update subtraction_arbitrary_pred
authored
Mar 16, 2021
by
Kentaro Mogushi
Show whitespace changes
Inline
Side-by-side
home/subtraction_arbitrary_pred.md
View page @
33347a99
...
@@ -18,3 +18,36 @@ plt.close()
...
@@ -18,3 +18,36 @@ plt.close()


# 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()
```


# 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()
```

-
Because the scattered light glitch has a wave with a frequency of 30 Hz, the some of them is subtracted.
