Class a.hpf
High Pass Filter
Tables
a.hpf | High Pass Filter |
Methods
a.hpf:new (fc, ts) | constructor for High Pass Filter |
a.hpf:gen (fc, ts) | generate for High Pass Filter |
a.hpf:iter (x) | calculate for High Pass Filter |
a.hpf:zero () | zeroing for High Pass Filter |
Tables
- a.hpf
-
High Pass Filter
Fields:
- alpha filter coefficient [0,1]
- output filter output
- input filter input
Methods
- a.hpf:new (fc, ts)
-
constructor for High Pass Filter
Parameters:
- fc number cut-off frequency unit(hz)
- ts number sampling time unit(s)
Returns:
-
a.hpf
High Pass Filter userdata
- a.hpf:gen (fc, ts)
-
generate for High Pass Filter
Parameters:
- fc number cut-off frequency unit(hz)
- ts number sampling time unit(s)
Returns:
-
a.hpf
High Pass Filter userdata
- a.hpf:iter (x)
-
calculate for High Pass Filter
Parameters:
- x number input value
Returns:
-
number
output value
- a.hpf:zero ()
-
zeroing for High Pass Filter
Returns:
-
a.hpf
High Pass Filter userdata