Giter Club home page Giter Club logo

Comments (5)

johnh2o2 avatar johnh2o2 commented on September 22, 2024

Hi Jake,

That would be great -- these are "generalized" versions of the C, S, YC, ... values given in the Zechmeister & Kurster paper; CC, SS, and CS can be thought of as covariance matrices (e.g. CC_{nm} = cov(cos(nwt), cos(mwt))), while in the original K&M paper they are scalar-valued covariances (i.e. CC_{zechmeister & kurster} = CC_{fast templ. per}[1][1]).

I'm in the process of writing up some testing code that does exactly what you mentioned (O(N^2) direct calculations). To test periodogram results, I'm also using a grid search over the phase shift parameter. I'll hopefully have an update a bit later tonight.

from fasttemplateperiodogram.

jakevdp avatar jakevdp commented on September 22, 2024

Awesome! By the way, I've been playing with this a bit, and I'm having a really hard time understanding pynfft. For example, I'd like to input a regular grid, compute the NFFT, and confirm that it gives the same output as a standard FFT. But I can't seem to make sense of the output.

Did you find any good resources on this when you were working on this part of the code?

from fasttemplateperiodogram.

johnh2o2 avatar johnh2o2 commented on September 22, 2024

Hey Jake,

I've added unit tests for the modeler class and for the NFFT sums; everything works on my machine, and we'll see if TravisCI sees any problems.

The NFFT has some really great and thorough theory papers; I mostly consulted

https://www-user.tu-chemnitz.de/~potts/nfft/guide/nfft3.pdf

for some quick references, but Stefan Kunis's dissertation is even more thorough (though I have found a sign error in the "fast gaussian gridding" section):

http://www.analysis.uni-osnabrueck.de/kunis/paper/KunisDiss.pdf

I can dig up more resources if you'd like. One possible source of confusion are the conventions used by NFFT/pyNFFT that differ from FFTW; for instance, the output of NFFT is f_hat[n] from -N/2 to N/2 instead of from 0 to N. It's critical, also, that the time values be scaled/shifted to [-1/2, 1/2).

Let me know if that helps at all.

from fasttemplateperiodogram.

jakevdp avatar jakevdp commented on September 22, 2024

Thanks – I'll take a look

from fasttemplateperiodogram.

jakevdp avatar jakevdp commented on September 22, 2024

done in 049bcb8 through e1a742a

from fasttemplateperiodogram.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.