Show:

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 Number

    An array of threshold and hysteresis values operations for input buffers.

Methods

addPoint

()

getKeys

() private

processSample

(
  • val
)
Number protected

Process the value to be filtered and return the filtered result.

Parameters:

  • val Number

    The input value to be filtered.

Returns:

Number: The resulting value after applying the filter.

removeAllPoints

()

removePoint

()

updateRange

() private