- Smoother added initial condition
git-svn-id: http://moon:8086/svn/projects/HendiControl@208 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user