質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,15 @@
|
|
22
22
|
|
23
23
|
#コード例
|
24
24
|
|
25
|
+
df2にデータが入っています。
|
25
26
|
|
26
27
|
|
27
28
|
|
28
29
|
|
30
|
+
|
31
|
+
```Python
|
32
|
+
|
29
|
-
|
33
|
+
バターワースフィルタ(バンドパス)
|
30
34
|
|
31
35
|
def bandpass(x, samplerate, fp, fs, gpass, gstop):
|
32
36
|
|
@@ -72,16 +76,6 @@
|
|
72
76
|
|
73
77
|
|
74
78
|
|
75
|
-
#
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
79
|
gpass = 3
|
86
80
|
|
87
81
|
gstop = 10
|
@@ -91,6 +85,8 @@
|
|
91
85
|
x = np.arange(0, len(df2[" EXG Channel 4"])) / samplerate # 波形生成のための時間軸の作成
|
92
86
|
|
93
87
|
|
88
|
+
|
89
|
+
for z in df2.columns:
|
94
90
|
|
95
91
|
fp = np.array([1, 50])
|
96
92
|
|
@@ -107,3 +103,7 @@
|
|
107
103
|
fs = np.array([45,55])
|
108
104
|
|
109
105
|
df3[z] = bandstop(data_bandfilt, samplerate, fp, fs, gpass, gstop)
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,14 +66,6 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
gpass = 3
|
70
|
-
|
71
|
-
gstop = 10
|
72
|
-
|
73
|
-
samplerate = 250
|
74
|
-
|
75
|
-
x = np.arange(0, len(df2[" EXG Channel 4"])) / samplerate # 波形生成のための時間軸の作成
|
76
|
-
|
77
69
|
|
78
70
|
|
79
71
|
|
@@ -85,6 +77,18 @@
|
|
85
77
|
|
86
78
|
|
87
79
|
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
gpass = 3
|
86
|
+
|
87
|
+
gstop = 10
|
88
|
+
|
89
|
+
samplerate = 250
|
90
|
+
|
91
|
+
x = np.arange(0, len(df2[" EXG Channel 4"])) / samplerate # 波形生成のための時間軸の作成
|
88
92
|
|
89
93
|
|
90
94
|
|