Package io.openems.edge.common.filter
Class Pt1filter
java.lang.Object
io.openems.edge.common.filter.Pt1filter
-
Constructor Summary
ConstructorDescriptionPt1filter
(double filterTimeConstant, double cycleTime) Creates a PT1 filter. -
Method Summary
Modifier and TypeMethodDescriptiondouble
applyPt1Filter
(double value) Apply the PT1 filter.void
setCycleTime
(double cycleTime) Sets cycle time of PT1 filter.
-
Constructor Details
-
Pt1filter
public Pt1filter(double filterTimeConstant, double cycleTime) Creates a PT1 filter.- Parameters:
filterTimeConstant
- filter time constant in seconds.cycleTime
- cycle time of calling applyPt1Filter in seconds
-
-
Method Details
-
setCycleTime
public void setCycleTime(double cycleTime) Sets cycle time of PT1 filter.- Parameters:
cycleTime
- cycle time of calling applyPt1Filter in seconds
-
applyPt1Filter
public double applyPt1Filter(double value) Apply the PT1 filter.- Parameters:
value
- the input value- Returns:
- the filtered value
-