Class BO.filters.TriggerPoint
Extends
BO.filters.FilterBase.
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.
Defined in: TriggerPoint.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BO.filters.TriggerPoint(points)
Divides an input to 0 or 1 based on the threshold and hysteresis.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addPoint(threshold, hysteresis)
|
|
|
processSample(val)
Override FilterBase.processSample
|
|
|
removePoint(threshold)
|
Class Detail
BO.filters.TriggerPoint(points)
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]].
- Parameters:
- {Number[]} points
- An array of threshold and hysteresis values operations for input buffers.
Method Detail
addPoint(threshold, hysteresis)
- Parameters:
- threshold
- hysteresis
processSample(val)
Override FilterBase.processSample
- Parameters:
- val
removeAllPoints()
removePoint(threshold)
- Parameters:
- threshold
