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, double const *num_p, double *input)
 set numerator for transfer function
 
void a_tf_set_den (a_tf *ctx, unsigned int den_n, double const *den_p, double *output)
 set denominator for transfer function
 
void a_tf_init (a_tf *ctx, unsigned int num_n, double const *num_p, double *input, unsigned int den_n, double const *den_p, double *output)
 initialize for transfer function
 
double a_tf_iter (a_tf const *ctx, double 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,
double const * num_p,
double * input,
unsigned int den_n,
double const * den_p,
double * 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()

double a_tf_iter ( a_tf const * ctx,
double 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,
double const * den_p,
double * 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,
double const * num_p,
double * 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