您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
Ondřej Hruška
891c07f5fb
|
8 年前 | |
---|---|---|
.. | ||
README.md | 8 年前 | |
meanbuf.c | 8 年前 | |
meanbuf.h | 8 年前 |
README.md
Averaging float buffer
(You can adjust it to use doubles, if you prefer.)
The meanbuf_create()
function allocates a buffer.
You can then call meanbuf_add()
to add a new value into the buffer (and remove the oldest).
This function returns the current average value.
This buffer can be used for signal smoothing (such as from an analogue sensor).