Documentation
Tools for embedded systems
Loading...
Searching...
No Matches
qrms.h
1
10#ifndef QRMS_H
11#define QRMS_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22 #include <stdlib.h>
23 #include "qssmoother.h"
24
25
29 typedef struct
30 {
36 } qRMS_t;
37
46 int qRMS_Setup( qRMS_t * const q,
47 float * const window,
48 const size_t wsize );
49
62 float qRMS_Update( qRMS_t * const q,
63 const float x );
64
78 int qRMS_SetParams( qRMS_t * const q,
79 const float lambda,
80 const float alpha );
81
84#ifdef __cplusplus
85}
86#endif
87
88#endif
int qRMS_SetParams(qRMS_t *const q, const float lambda, const float alpha)
Change the recursive parameters for the moving RMS estimator.
Definition qrms.c:42
int qRMS_Setup(qRMS_t *const q, float *const window, const size_t wsize)
Initialize the RMS instance by setting the default optimal parameters.
Definition qrms.c:11
float qRMS_Update(qRMS_t *const q, const float x)
Computes the moving root mean square (RMS) of the input signal. The object uses both the exponential ...
Definition qrms.c:28
RMS calculator instance.
Definition qrms.h:30
An Exponential weighting filter.
Definition qssmoother.h:143
A 1st order Low-Pass Filter.
Definition qssmoother.h:56
A Moving Window Median filter.
Definition qssmoother.h:93