Question on the implementation of calc_waveform_metrics
#90
-
Hi! I was reading the implementation of It seems to be using a spline interpolation to adjust the sample timestamps of to-be-resampled waveform data. However, it is simply interpolating the curve Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Thanks for pointing this out. Indeed it was not necessary - it was a lazy implementation on my part. I am interpolating the waveforms using the same method a few lines below, so I had simply reused the line for the time-axis, which was not necessary. I altered the line to the following: I pushed the changes to GitHub. |
Beta Was this translation helpful? Give feedback.
Hi
Thanks for pointing this out. Indeed it was not necessary - it was a lazy implementation on my part. I am interpolating the waveforms using the same method a few lines below, so I had simply reused the line for the time-axis, which was not necessary. I altered the line to the following:
timeWaveform = timeWaveform(1):mean(diff(timeWaveform))/oversampling:timeWaveform(end);
I pushed the changes to GitHub.