Functions
filter.h File Reference

digital filter functions More...

Go to the source code of this file.

Functions

static float EWMA_filter (float a, float xk, float yk1)
static float EWMA_smoothing (int N)

Detailed Description

digital filter functions

Definition in file filter.h.


Function Documentation

static float EWMA_filter ( float  a,
float  xk,
float  yk1 
) [inline, static]

Exponentially weighted moving average filter. Transfer function:

y[k] = a*x[k] + (1-a)*y[k-1]

The smoothing factor, "a", is how much weight to assign the latest observation. Values of "a" close to one have less of a smoothing effect and give greater weight to recent changes in the data, while values of "a" closer to zero have a greater smoothing effect and are less responsive to recent changes.[1]

[1] http://en.wikipedia.org/wiki/Exponential_smoothing

Definition at line 32 of file filter.h.

static float EWMA_smoothing ( int  N) [inline, static]

Exponential smoothing factor corresponding to N periods.

Definition at line 40 of file filter.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


art_common
Author(s): Austin Robot Technology
autogenerated on Tue Sep 24 2013 10:41:19