remove the comments of Cython .pxi
[liba.git] / python / src / a / hpf.pxi
blob559228658bd0345fa375523c199e112419e572be
1 from a.hpf cimport *
3 @cython.wraparound(False)
4 @cython.boundscheck(False)
5 cdef class hpf:
6     cdef a_hpf ctx
7     def __init__(self, fc: a_float, ts: a_float):
8         a_hpf_init(&self.ctx, a_hpf_gen(fc, ts))
9     def gen(self, fc: a_float, ts: a_float):
10         a_hpf_init(&self.ctx, a_hpf_gen(fc, ts))
11         return self
12     def __call__(self, x: a_float) -> a_float:
13         return a_hpf_iter(&self.ctx, x)
14     def zero(self):
15         a_hpf_zero(&self.ctx)
16         return self
17     property alpha:
18         def __get__(self) -> a_float:
19             return self.ctx.alpha
20         def __set__(self, alpha: a_float):
21             self.ctx.alpha = alpha
22     property output:
23         def __get__(self) -> a_float:
24             return self.ctx.output
25     property input:
26         def __get__(self) -> a_float:
27             return self.ctx.input