- Smoother added initial condition

git-svn-id: http://moon:8086/svn/projects/HendiControl@208 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-04-03 05:16:08 +00:00
parent df093ee00a
commit 7cc2e017a0
+3
View File
@@ -4,6 +4,9 @@ class Smoother:
self.b = 1-alpha
self.y = 0
def initial(self, ic):
self.y = ic
def process(self, x):
self.y = self.b*self.y + self.a*x
return self.y