Skip to content

Commit 5ae12be

Browse files
committed
Added comments to decimate/downsample example.
1 parent 6701aa1 commit 5ae12be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/decimate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
from filterbank.filterbank import Filterbank
1313
import matplotlib.pyplot as plt
1414

15-
15+
# Initialize filterbank based on the pspm32.fil file. This filterbank object can then be used for other actions.
1616
fb = Filterbank("./pspm32.fil")
1717
fb.read_filterbank()
1818

19+
# Creating timeseries object from filterbank file which is initialized above.
1920
time_series = Timeseries().from_filterbank(fb)
2021

22+
# Using the downsample method from the timeseries object.
2123
decimated_tv = time_series.downsample(3)
2224

25+
# Plotting the downsampled result.
2326
plt.plot(decimated_tv)
2427
plt.show()
28+

0 commit comments

Comments
 (0)