Skip to content

theiler_window

Functions:

NameDescription
theiler_windowBuild a per-query mask that excludes temporally close library points.
theiler_window(t1: np.ndarray, t2: np.ndarray, width: int) -> Mask

Build a per-query mask that excludes temporally close library points.

Passing the result as mask to simplex_projection, soft_simplex_projection, or smap gives leave-one-out prediction with Theiler window exclusion when Q is X and t1 is t2.

Parameters:

NameTypeDescriptionDefault
t1ndarrayTime indices of the query points, shape (M,) or (B, M).required
t2ndarrayTime indices of the library points, shape (N,) or (B, N).required
widthintTheiler window half-width. Library points j where “t1[i] - t2[j]

Returns:

NameTypeDescription
maskMaskmask(i, j), or mask(b, i, j), True where the library point lies outside the window.