BO.filters.TriggerPoint Class
Divides an input to 0 or 1 based on the threshold and hysteresis. You can
also use multiple points by providing a nested array such as [[0.4, 0.1],
[0.7, 0.05]]
.
See Breakout/examples/filters/triggerpoint.html for an example application.
Constructor
BO.filters.TriggerPoint
(
-
points
Parameters:
-
points
NumberAn array of threshold and hysteresis values operations for input buffers.
Item Index
Methods
addPoint
()
getKeys
()
private
processSample
(
Number
protected
-
val
Process the value to be filtered and return the filtered result.
Parameters:
-
val
NumberThe input value to be filtered.
Returns:
Number:
The resulting value after applying the filter.