Comments (5)
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.
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.
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.
Thanks – I'll take a look
from fasttemplateperiodogram.
done in 049bcb8 through e1a742a
from fasttemplateperiodogram.
Related Issues (15)
- py.test --pyargs pyftp fails HOT 1
- Need a new package name HOT 4
- Discrepancies between model parameters and periodogram HOT 6
- Speed up tests HOT 3
- Code Organization HOT 1
- Use Polynomial API in PseudoPolynomial? HOT 1
- Concern: ``remove_zeros`` in ``pseudo_poly`` HOT 1
- Rename FastTemplateModeler HOT 2
- Some code questions... HOT 6
- Multiplication of `PseudoPolynomial` with `Polynomial` is not commutative HOT 2
- Use ``nfft`` rather than ``pynfft``? HOT 3
- make test HOT 4
- get_best_model() does not return the optimal parameters... HOT 2
- Cannot Instantiate RRLyrae Modeler HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fasttemplateperiodogram.