Class a.lpf

Low Pass Filter

Tables

a.lpf Low Pass Filter

Methods

a.lpf:new (fc, ts) constructor for Low Pass Filter
a.lpf:gen (fc, ts) generate for Low Pass Filter
a.lpf:iter (x) calculate for Low Pass Filter
a.lpf:zero () zeroing for Low Pass Filter


Tables

a.lpf
Low Pass Filter

Fields:

  • alpha filter coefficient [0,1]
  • output filter output

Methods

a.lpf: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
a.lpf:gen (fc, ts)
generate 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
a.lpf:iter (x)
calculate for Low Pass Filter

Parameters:

  • x number input value

Returns:

    number output value
a.lpf:zero ()
zeroing for Low Pass Filter

Returns:

    a.lpf Low Pass Filter userdata
generated by LDoc 1.5.0 Last updated 2024-09-30 14:51:04