(self, t, f0)
| 110 | return num / den |
| 111 | |
| 112 | def rect(self, t, f0): |
| 113 | n = np.rint((t) / self.dt) |
| 114 | return np.where( |
| 115 | n.any() < 0.0 or n.any() > self.N, |
| 116 | 0, |
| 117 | np.exp(-1j * 2 * np.pi * f0 * t), |
| 118 | ) |
| 119 | |
| 120 | def hann(self, t, f0): |
| 121 | a = [0.5, 0.5] |