Re: [Rd] stats::fft produces inconsistent results

2021-10-21 Thread Ben Bolker
echler <mailto:maech...@stat.math.ethz.ch>>; GILLIBERT, Andre <mailto:andre.gillib...@chu-rouen.fr>>;bbol...@gmail.com <mailto:bbol...@gmail.com> *Cc :*r-devel@r-project.org <mailto:r-devel@r-project.org> *Objet :*Re: [Rd] stats::fft produces inconsistent results ATTEN

Re: [Rd] stats::fft produces inconsistent results

2021-10-21 Thread Dipterix Wang
e that > my quick description of the system will make it easier to understand the > extensive documentation. > > -- <> > Sincèrement > André GILLIBERT > > De : <> Dipterix Wang <mailto:dipterix.w...@gmail.com>> > Envoyé : mercredi 20 octobre 2021 22:01 > À

Re: [Rd] stats::fft produces inconsistent results

2021-10-21 Thread GILLIBERT, Andre
l make it easier to understand the extensive documentation. -- Sinc�rement Andr� GILLIBERT De : Dipterix Wang Envoy� : mercredi 20 octobre 2021 22:01 � : Martin Maechler ; GILLIBERT, Andre ; bbol...@gmail.com Cc : r-devel@r-project.org Objet : Re: [Rd] stats::fft produces inconsistent resul

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread Dipterix Wang
Wow, you guys are amazing! >>> as part of its pipeline, ravetools::mvfftw computes the mean of the >>> input vector **and then centers it to a mean of zero** (intentionally or >>> accidentally?) > >>> because variables are passed to compiled code by reference (someone >>> can feel free to

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread Martin Maechler
;> De : R-devel De la part de Ben Bolker >> Envoyé : mercredi 20 octobre 2021 03:27 >> À : r-devel@r-project.org >> Objet : Re: [Rd] stats::fft produces inconsistent results >> This is a long shot, but here's a plausible scenario: >> as p

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread Martin Maechler
eing grouchy .. > -----Message d'origine- > De : R-devel De la part de Ben Bolker > Envoyé : mercredi 20 octobre 2021 03:27 > À : r-devel@r-project.org > Objet : Re: [Rd] stats::fft produces inconsistent results > This is a long shot, but here's a p

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread GILLIBERT, Andre
ion is quite extensive: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Handling-R-objects-in-C -- Sincerely André GILLIBERT -Message d'origine- De : R-devel De la part de Ben Bolker Envoyé : mercredi 20 octobre 2021 03:27 À : r-devel@r-project.org Objet :

Re: [Rd] stats::fft produces inconsistent results

2021-10-19 Thread Ben Bolker
This is a long shot, but here's a plausible scenario: as part of its pipeline, ravetools::mvfftw computes the mean of the input vector **and then centers it to a mean of zero** (intentionally or accidentally?) because variables are passed to compiled code by reference (someone can