Skip to content

Commit

Permalink
minor: improved signal definition in sliding example
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Oct 29, 2023
1 parent 5e1567c commit 47b672d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/plot_sliding.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@
###############################################################################
# Let's start by creating a 1-dimensional array of size :math:`n_t` and create
# a sliding operator to compute its transformed representation.
nwins = 4

# sliding window parameters
nwin = 26
nover = 3
nop = 64
dimd = nwin * nwins - 3 * nover

# length of input signal (chosen to ensure perfect match with sliding windows)
dimd = 95
t = np.arange(dimd) * 0.004
data = np.sin(2 * np.pi * 20 * t)

Expand Down

0 comments on commit 47b672d

Please sign in to comment.