liba 0.1.15
An algorithm library based on C/C++
 
Loading...
Searching...
No Matches
transfer function
Collaboration diagram for transfer function:

Data Structures

struct  a_tf
 instance structure for transfer function More...
 

Typedefs

typedef struct a_tf a_tf
 

Functions

void a_tf_set_num (a_tf *ctx, unsigned int num_n, a_float const *num_p, a_float *input)
 set numerator for transfer function
 
void a_tf_set_den (a_tf *ctx, unsigned int den_n, a_float const *den_p, a_float *output)
 set denominator for transfer function
 
void a_tf_init (a_tf *ctx, unsigned int num_n, a_float const *num_p, a_float *input, unsigned int den_n, a_float const *den_p, a_float *output)
 initialize for transfer function
 
a_float a_tf_iter (a_tf const *ctx, a_float x)
 calculate for transfer function
 
void a_tf_zero (a_tf const *ctx)
 zeroing for transfer function
 

Detailed Description

Function Documentation

◆ a_tf_init()

void a_tf_init ( a_tf * ctx,
unsigned int num_n,
a_float const * num_p,
a_float * input,
unsigned int den_n,
a_float const * den_p,
a_float * output )

initialize for transfer function

Parameters
[in,out]ctxpoints to an instance of transfer function
[in]num_nnumerator number
[in]num_pnumerator
[in]inputinput
[in]den_ndenominator number
[in]den_pdenominator
[in]outputoutput

◆ a_tf_iter()

a_float a_tf_iter ( a_tf const * ctx,
a_float x )

calculate for transfer function

Parameters
[in]ctxpoints to an instance of transfer function
[in]xtransfer function input
Returns
transfer function output

◆ a_tf_set_den()

void a_tf_set_den ( a_tf * ctx,
unsigned int den_n,
a_float const * den_p,
a_float * output )

set denominator for transfer function

Parameters
[in,out]ctxpoints to an instance of transfer function
[in]den_ndenominator number
[in]den_pdenominator
[in]outputoutput

◆ a_tf_set_num()

void a_tf_set_num ( a_tf * ctx,
unsigned int num_n,
a_float const * num_p,
a_float * input )

set numerator for transfer function

Parameters
[in,out]ctxpoints to an instance of transfer function
[in]num_nnumerator number
[in]num_pnumerator
[in]inputinput

◆ a_tf_zero()

void a_tf_zero ( a_tf const * ctx)

zeroing for transfer function

Parameters
[in]ctxpoints to an instance of transfer function