Skip to content

Commit

Permalink
Merge pull request #541 from mrava87/doc-slidingex
Browse files Browse the repository at this point in the history
minor: improved signal definition in sliding example
  • Loading branch information
mrava87 authored Oct 29, 2023
2 parents 5e1567c + 47b672d commit 1d4c683
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 1d4c683

Please sign in to comment.