Timeline for downsample signal to a specific number of samples in Python
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 29, 2023 at 18:00 | history | tweeted | twitter.com/StackSignals/status/1619757288763400193 | ||
Jan 29, 2023 at 9:38 | answer | added | Diana | timeline score: 0 | |
Apr 9, 2020 at 7:39 | answer | added | Bat1985 | timeline score: 3 | |
Nov 28, 2019 at 21:17 | comment | added | chaohuang | @MarcusMüller could you please elaborate? Maybe as an answer, so I can accept it. | |
Nov 28, 2019 at 21:13 | comment | added | Marcus Müller | @chaohuang that doesn't justify resampling, at all. | |
Nov 28, 2019 at 20:13 | comment | added | chaohuang | I also clarified this in the question. | |
Nov 28, 2019 at 20:12 | history | edited | chaohuang | CC BY-SA 4.0 |
explain why I need to downsample signals to a fixed number of samples
|
Nov 28, 2019 at 20:07 | history | edited | chaohuang | CC BY-SA 4.0 |
explain why I need to downsample signals to a fixed number of samples
|
Nov 28, 2019 at 20:03 | comment | added | chaohuang | @MarcusMüller I have signals with different length, and I want to use those signals to train a 1D CNN, which requires inputs of fixed size, so I need to downsample signals to a fixed number of samples. | |
Nov 28, 2019 at 7:10 | review | Close votes | |||
Dec 9, 2019 at 14:53 | |||||
Nov 28, 2019 at 6:54 | comment | added | Marcus Müller | Just as @LamebrainEddy, I'm 99% sure that what you are trying to do is a bad idea! Please, avoid the XY Problem and tell us what you want to do in the bigger picture, and especially why you'd want to resample to a fixed number of samples. | |
Nov 28, 2019 at 2:19 | answer | added | DamienBradley | timeline score: 2 | |
Nov 28, 2019 at 2:11 | answer | added | Nigel Redmon | timeline score: 2 | |
Nov 28, 2019 at 1:59 | comment | added | Dan Boschen | Your signal need not be periodic or have values beyond the boundary that are zeros, this just means what the resample function used assumes IF your signal were to continue for infinite time, so in each case will have a different result at the boundaries due to that assumption. Unfortunately given your sampling ratios have no common factors you would need to interpolate by 100 and then decimate by 611 to achieve your result. Have you tried resample(x, 100, 611) and does it not achieve your desired result? | |
Nov 27, 2019 at 22:21 | history | asked | chaohuang | CC BY-SA 4.0 |