Comments (3)
@raphaelvallat indeed results are different.
The stats works because it's following what's described in the paper. However, the pac estimation returned by the function doesn't corresponds to the one described in the paper. The s
is squared in Ozkurt formula, but the returned pac should not. Actually, if you take your values, square it and multiply by the number of time-points (4000) you should retrieve my values.
So yes, please make a PR !
Merci,
++
from tensorpac.
I see your point. I don't really remember why I didn't strictly follow the paper but at the ed I think it's going to produce the same results because :
s > 2 * xlim
<=> s > 2 * N * erfinv(r) ²
<=> s / N > 2 * erfinv(r) ²
That's why the xlim doesn't contains N
. An advantage of the current implementation is that I don't need to make a copy of pac
(your s = pac ** 2
).
However, I might also miss something. Could you please try it on your side with your implementation to double check?
from tensorpac.
Hi @EtienneCmb ! So I checked and it does induce produce different results. It seems that the current implementation gives PAC values that are not bounded by [0-1]. The masking seems correct however.
Let me know what you think of the notebooks below, and if that sounds good I can submit a PR
Notebook = ndpac.pdf
from tensorpac.
Related Issues (10)
- feedback HOT 2
- Matplotlib required dependency HOT 4
- p.idpac true pac method 5 HOT 2
- surrogate values
- Compare PAC of two experimental conditions with cluster-based statistics
- Removing the noise of the README example breaks the results
- A question about normalization of morlet wavelet
- Hilbert unbelievably slow when len(time) is not a hamming number HOT 8
- No tags for recent versions HOT 2
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 tensorpac.