HITI Signal Filter

A HITI Signal Filter is a variable which lets you filter your data on the fly while you receive them. It is ideal to filter a continuous data stream, and it is particularly useful for filtering data from your sensors to:

  • remove electrical noise
  • smooth low-resolution data and increase resolution
  • improve data quality and reading


How does it work ?

A HITI Signal Filter processes input data that you give it and calculates a filtered output based on the last input data it received. By default, it processes the last 10 data you gave it, but you are free to change this number by using setBufferSize(size). The max is 255. If needed, you can clear() this buffer at any time.

2 filters are available: average and median. To filter your input data (float), simply use the following functions:

  • average(input data) =>  returns the average value (float) of the last xxx input data
  • median(input data) =>  returns the median value (float) of the last xxx input data


Was this article helpful?
0 out of 0 found this helpful