Classes to monitor stability in some value.
A class for tracking stability based on trend.
Parameters : | bufferSize : int
tolerance : float
timeout : float
|
---|
Methods
Add a point to the monitor.
Parameters : | value : float
|
---|
Return the slope of the line formed by the data.
Returns : | float :
|
---|
Return whether the buffer is full.
Returns : | bool :
|
---|
Return whether the wait for stability can end.
Returns : | bool :
|
---|
A class for tracking stability based on proximity to a setpoint.
Parameters : | bufferSize : int
setpoint : float
tolerance : float
timeout : float
|
---|
Methods
Add a point to the monitor.
Parameters : | value : float
|
---|
Return the slope of the line formed by the data.
Returns : | float :
|
---|
Return whether the buffer is full.
Returns : | bool :
|
---|
Return whether the wait for stability can end.
Returns : | bool :
|
---|
A timer for checking for stability.
Parameters : | duration : float
stability : float
timeout : float
|
---|
Methods
Associate a new value with the timer.
Parameters : | newValue : float
|
---|
Return how long the timer has been stable.
Returns : | float :
|
---|
Return the maximum and minimum values and the slope of the line.
Note that whenever a new value is added to the timer, if the new value is outside the stability range defined by previous values, the arrays are cleared and the maximum and minimum values are both set to the newly added value.
Returns : | float :
float :
float :
|
---|
Return whether the desired conditions have been met.
Returns : | bool :
|
---|
A timer for checking for stability, which keeps only new points.
Parameters : | stability : float
bufferSize : int
timeout : float
|
---|
Methods
Associate a new value with the timer.
Parameters : | newValue : float
|
---|
Return the maximum and minimum values and the slope of the line.
Note that whenever a new value is added to the timer, if the new value is outside the stability range defined by previous values, the arrays are cleared and the maximum and minimum values are both set to the newly added value.
Returns : | float :
float :
float :
|
---|
Return whether the buffer is full.
Returns : | bool :
|
---|
Return whether the desired conditions have been met.
Returns : | bool :
|
---|