Skip to content
Prev 60208 / 63424 Next

stats::fft produces inconsistent results

Wow, you guys are amazing!
I didn?t center the input vector in my code. The data was fed ?as-is? into FFTW3. My guess is FFTW3 internally center the data. It could be that FFTW3 library behave differently on different platforms, which could explain the reproducibility issue.
CRAN has already had fftw and fftwtools, the issue is the data I?m targeting at are at GB-level, copying the vectors can be memory inefficient or even use up memories. The strategy of ravetools is to import signals from local files, fft, then directly write to disk. So only one reference will be used and modifying in-place is on purpose. In fact, and the fft functions I created are not intended to be used directly by users.

However, I should've been very cautious when using these functions. This is my fault. I?ll check the whole package to make sure only one reference is used or otherwise the vectors will be copied.
Nice to learn! I?ll add it to my code.
Indeed, I found myself often confused about when to PROTECT and when not.
Haha, thanks : ) I guess I will probably be grouchy too if seeing so many people making the same mistakes again and again. It just happened to be me.
But it?s good to be rigorous. Sooner or later I'll have to face these problems. It?s better to make mistakes before having made many.

Thanks y?all!

Best,
- Dipterix Wang