We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6701aa1 commit 5ae12beCopy full SHA for 5ae12be
examples/decimate.py
@@ -12,13 +12,17 @@
12
from filterbank.filterbank import Filterbank
13
import matplotlib.pyplot as plt
14
15
-
+# Initialize filterbank based on the pspm32.fil file. This filterbank object can then be used for other actions.
16
fb = Filterbank("./pspm32.fil")
17
fb.read_filterbank()
18
19
+# Creating timeseries object from filterbank file which is initialized above.
20
time_series = Timeseries().from_filterbank(fb)
21
22
+# Using the downsample method from the timeseries object.
23
decimated_tv = time_series.downsample(3)
24
25
+# Plotting the downsampled result.
26
plt.plot(decimated_tv)
27
plt.show()
28
+
0 commit comments