Module liba.lpf

Low Pass Filter

Functions

new (fc, ts) constructor for Low Pass Filter
gen (ctx, fc, ts) generate for Low Pass Filter
iter (ctx, x) calculate for Low Pass Filter
zero (ctx) zeroing for Low Pass Filter


Functions

new (fc, ts)
constructor for Low Pass Filter

Parameters:

  • fc number cut-off frequency unit(hz)
  • ts number sampling time unit(s)

Returns:

    a.lpf Low Pass Filter userdata
gen (ctx, fc, ts)
generate for Low Pass Filter

Parameters:

  • ctx a.lpf Low Pass Filter userdata
  • fc number cut-off frequency unit(hz)
  • ts number sampling time unit(s)

Returns:

    a.lpf Low Pass Filter userdata
iter (ctx, x)
calculate for Low Pass Filter

Parameters:

  • ctx a.lpf Low Pass Filter userdata
  • x number input value

Returns:

    number output value
zero (ctx)
zeroing for Low Pass Filter

Parameters:

  • ctx a.lpf Low Pass Filter userdata

Returns:

    a.lpf Low Pass Filter userdata
generated by LDoc 1.5.0 Last updated 2024-05-11 16:29:31