- refactored

This commit is contained in:
jens
2021-10-09 09:46:52 +02:00
parent 529ae7ad2f
commit 5923212055
5 changed files with 65 additions and 47 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import numpy as np
class Delay:
def __init__(self, dt, delay):
def __init__(self, dt, delay, ic):
nd = int(delay/dt + 0.5)
self.delay_line = np.zeros(nd+1)
self.delay_line = np.ones(nd+1)*ic
self.ri = 0
self.wi = 0