Skip to content

Commit 2e33496

Browse files
committed
old kmeans
1 parent f50e46c commit 2e33496

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

wfdb/processing/cqrs.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, hr=75, hr_max=200, hr_min=25, qrs_width=0.1):
3434
class CQRS(object):
3535

3636

37-
def __init__(self, sig, fs, conf):
37+
def __init__(self, sig, fs, conf=Conf()):
3838
self.sig = sig
3939
self.fs = fs
4040

@@ -111,16 +111,7 @@ def detect(self, sampfrom=0, sampto='end'):
111111
self.learn_params()
112112

113113

114-
# plt.plot(self.sig_f, 'b')
115-
# plt.plot(self.sig_i, 'r')
116-
# #plt.plot(self.dominant_peak_inds, self.sig_i[self.dominant_peak_inds], 'k*')
117-
# plt.plot(self.qrs_peak_inds, self.sig_i[self.qrs_peak_inds], 'g*')
118-
# plt.title('Derived ECG signals')
119-
# plt.legend(['Badpass filtered','Moving wave integration'])
120-
# plt.show()
121114

122-
plt.plot(self.sig, 'b')
123-
plt.plot(self.qrs_peak_inds, self.sig[self.qrs_peak_inds], 'r*')
124115

125116
return
126117

0 commit comments

Comments
 (0)