Skip to content

Commit 47b672d

Browse files
committed
minor: improved signal definition in sliding example
1 parent 5e1567c commit 47b672d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/plot_sliding.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929
###############################################################################
3030
# Let's start by creating a 1-dimensional array of size :math:`n_t` and create
3131
# a sliding operator to compute its transformed representation.
32-
nwins = 4
32+
33+
# sliding window parameters
3334
nwin = 26
3435
nover = 3
3536
nop = 64
36-
dimd = nwin * nwins - 3 * nover
3737

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

0 commit comments

Comments
 (0)