Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quancs committed Jun 9, 2023
1 parent 5d3c134 commit 4dbac42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srmrpy/modulation_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
def make_modulation_filter(w0, Q):
W0 = np.tan(w0/2)
B0 = W0/Q
b = np.array([B0, 0, -B0], dtype=np.float)
a = np.array([(1 + B0 + W0**2), (2*W0**2 - 2), (1 - B0 + W0**2)], dtype=np.float)
b = np.array([B0, 0, -B0], dtype=np.float64)
a = np.array([(1 + B0 + W0**2), (2*W0**2 - 2), (1 - B0 + W0**2)], dtype=np.float64)
return b, a

def modulation_filterbank(mf, fs, Q):
Expand All @@ -27,7 +27,7 @@ def compute_modulation_cfs(min_cf, max_cf, n):
return cfs

def modfilt(F, x):
y = np.zeros((len(F), len(x)), dtype=np.float)
y = np.zeros((len(F), len(x)), dtype=np.float64)
for k, f in enumerate(F):
y[k] = sig.lfilter(f[0], f[1], x)
return y
Expand Down

0 comments on commit 4dbac42

Please sign in to comment.