(T_A, m, T_B=None, exclusion_zone=None)
| 195 | |
| 196 | |
| 197 | def stamp(T_A, m, T_B=None, exclusion_zone=None): # pragma: no cover |
| 198 | if T_B is None: # self-join |
| 199 | result = np.array( |
| 200 | [ |
| 201 | mass_PI(Q, T_A, m, i, exclusion_zone, True) |
| 202 | for i, Q in enumerate(core.rolling_window(T_A, m)) |
| 203 | ], |
| 204 | dtype=object, |
| 205 | ) |
| 206 | else: |
| 207 | result = np.array( |
| 208 | [mass_PI(Q, T_B, m) for Q in core.rolling_window(T_A, m)], |
| 209 | dtype=object, |
| 210 | ) |
| 211 | return result |
| 212 | |
| 213 | |
| 214 | def searchsorted_right(a, v): |