This commit is contained in:
2022-05-09 06:59:23 +08:00
commit e16e7dbf7a
20 changed files with 5855 additions and 0 deletions

20
step.py Normal file
View File

@@ -0,0 +1,20 @@
from algorithm import algorithm
import json
class step(algorithm):
def __init__(self):
self.config_dict_ = None
self.config_ = None
self.amplitude_base_ = 0.0
def set_config(self, config):
self.config_ = config
self.config_dict_ = json.loads(self.config_)
self.amplitude_base_ = self.config_dict_["STEP_AMPLITUDE_BASE"]
def config(self):
return self.config_
def eval(self, value):
return value * self.amplitude_base_