| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1200 |
Sorry, something went wrong.
|
As discussed previously in this comment, I am planning to replace core.sliding_dot_product with something like this: def sliding_dot_product(Q, T, boundaries):
m = len(Q)
n = len(T)
sdp = None
for boundary in boundaries:
(LB_m, UB_m), (LB_n, UB_n), sdp_func = boundary
if LB_m <= m < UB_m and LB_n <= n < UB_n:
return sdp_func(Q, T)
return sdp_func_default(Q, T)
|
Sorry, something went wrong.
def sliding_dot_product(Q, T, boundaries):
m = len(Q)
n = len(T)
sdp = None
for boundary in boundaries:
(LB_m, UB_m), (LB_n, UB_n), sdp_func = boundary
if LB_m <= m < UB_m and LB_n <= n < UB_n:
return sdp_func(Q, T)
return sdp_func_default(Q, T)
Doesn't this mean that every time somebody passes in the boundaries then the sets of bounds get loaded every time you call this function? This logic seems suspicious but I'll wait until you implement it to assess further. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
See #1111
Pull Request Checklist
Below is a simple checklist but please do not hesitate to ask for assistance!
Please do not commit any code to avoid/circumvent a failing test and, instead, engage in a discussion (below) to determine the best course of action.
Only request a review after the checklist above is fully completed!
This is to address PR 4 as described in #1118 (comment). I've copied the corresponding notes below: