fix atan2,rename {hypot,hypot3} to {norm2,norm3}
[liba.git] / lua / src / lpf.h
bloba56200ee3cbd9ef31cc595e83372808944409117
1 /***
2 Low Pass Filter
3 @classmod a.lpf
4 */
6 #ifndef LUA_LIBA_LPF_H
7 #define LUA_LIBA_LPF_H
9 #include "a.h"
11 /***
12 Low Pass Filter
13 @field alpha filter coefficient [0,1]
14 @field output filter output
15 @table a.lpf
17 #if defined(__cplusplus)
18 extern "C" {
19 #endif /* __cplusplus */
21 /***
22 constructor for Low Pass Filter
23 @tparam number fc cut-off frequency unit(hz)
24 @tparam number ts sampling time unit(s)
25 @treturn a.lpf Low Pass Filter userdata
26 @function new
28 int liba_lpf_new(lua_State *L);
30 /***
31 generate for Low Pass Filter
32 @tparam number fc cut-off frequency unit(hz)
33 @tparam number ts sampling time unit(s)
34 @treturn a.lpf Low Pass Filter userdata
35 @function gen
37 int liba_lpf_gen(lua_State *L);
39 /***
40 calculate for Low Pass Filter
41 @tparam number x input value
42 @treturn number output value
43 @function iter
45 int liba_lpf_iter(lua_State *L);
47 /***
48 zeroing for Low Pass Filter
49 @treturn a.lpf Low Pass Filter userdata
50 @function zero
52 int liba_lpf_zero(lua_State *L);
54 #if defined(__cplusplus)
55 } /* extern "C" */
56 #endif /* __cplusplus */
58 #endif /* lpf.h */