Block: AdaptivePT1



PIC




Inports


In

Input In(k)



fc

Cutoff frequency






Outports


Out

Output Out(k)






Mask Parameters


V

Gain



fmax

Maximum frequency [Hz]

(not used in floating point implementations)



ts_fact

Multiplication factor of base sampling time (in integer format)



method

Discretization method




Description:

First order low pass with adaptive cut off frequency:

G(s) = V/(s/(2*pi*fc) + 1)

Transfer function (zero-order hold discretization method):

          1 - e-2πfcTs
G (z) = V ------2πfcTs-
          z - e

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP8


8 Bit Fixed Point Implementation



Inports Data Type


In

int8



fc

int8






Outports Data Type


Out

int8




Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


In

int16



fc

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


In

int32



fc

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


In

float32



fc

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


In

float64



fc

float64






Outports Data Type


Out

float64