Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stumpy/floss.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def update(self, t):
This is the implementation for Fast Low-cost Online Semantic
Segmentation (FLOSS).
"""
self._T[:] = np.roll(self._T, -1)
self._T[:-1] = self._T[1:]
self._T[-1] = t
Q = self._T[-self._m :]
excl_zone = int(np.ceil(self._m / 4))
Expand All @@ -492,7 +492,7 @@ def update(self, t):
# Egress
# Remove the first element in the matrix profile index
# Shift mp up by one and replace the last row with new values
self._mp[:] = np.roll(self._mp, -1, axis=0)
self._mp[:-1, :] = self._mp[1:, :]
self._mp[-1, 0] = np.inf
self._mp[-1, 3] = self._last_idx

Expand Down