Skip to content

Lag by window in STUMPI #481

Answered by seanlaw
rnjv asked this question in Q&A
Oct 28, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @rnjv and welcome to the STUMPY community. Can you provide a concrete example of what you mean? STUMPY follows Page 17 of this paper.

I haven't gone through your paper in detail but it sounds like what you are asking is for the matrix profile to be shifted to the right by the window size. Maybe something like this:


stream = stumpy.stumpi(np.random.rand(100), m, egress=True)
shift_window = np.full(m, np.inf)

for i in range(100):
    t = np.random.rand()
    stream.update(t)
    shifted_left_P = np.concatenate(shift_window, stream.left_P_)
    # Do something with shifted left matrix profile

Would that work?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@seanlaw
Comment options

@rnjv
Comment options

@seanlaw
Comment options

@rnjv
Comment options

Answer selected by rnjv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #480 on October 28, 2021 16:53.