1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/***
transfer function
@classmod a.tf
*/
#ifndef LUA_LIBA_TF_H
#define LUA_LIBA_TF_H
#include "a.h"
/***
transfer function
@field num numerator table
@field den denominator table
@field input input table
@field output output table
@table a.tf
*/
#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */
/***
destructor for transfer function
@function die
*/
int liba_tf_die(lua_State *L);
/***
constructor for transfer function
@tparam table num numerator table
@tparam table den denominator table
@treturn a.tf transfer function userdata
@function new
*/
int liba_tf_new(lua_State *L);
/***
initialize for transfer function
@tparam table num numerator table
@tparam table den denominator table
@treturn a.tf transfer function userdata
@function init
*/
int liba_tf_init(lua_State *L);
/***
calculate for transfer function
@tparam number x input
@treturn number output
@function iter
*/
int liba_tf_iter(lua_State *L);
/***
zeroing for transfer function
@treturn a.tf transfer function userdata
@function zero
*/
int liba_tf_zero(lua_State *L);
#if defined(__cplusplus)
} /* extern "C" */
#endif /* __cplusplus */
#endif /* tf.h */