Open jackgoffinet opened 3 years ago
And W is the upper/lower triangular part of an N by N matrix, right?
It also looks like causality is [M,P+1,N*(N-1)]. Is that an extra time window?
Hey Jack, are you viewing things in Python or Matlab? The dimensions get reversed between the two because I believe matlab has the first dimension iterate over adjacent elements in memory (fortran-style), while numpy typically does that for the last dimension (c-style).
Thanks, @neil-gallagher . I think that explains most of these differences -- the dimensions are just reversed in Python vs. Matlab. I think the shapes still don't match the docstrings, though. Right now I'm getting these shapes in Matlab:
power: [frequency, region, time]
This matches the docstring.
coherence: [frequency, time, region, region]
According to the docstring, this should be [frequency, region, time, region]
.
causality: [30, frequency+1, time]
According to the docstring, this should be [time, frequency, window]
. Two questions about this: i) does "window" represent the region * (region-1)
ordered pairs of regions? ii) is there an extra frequency bin here relative to the coherence and power? Is it a lower frequency or a higher frequency?
saveFeatures.m
lists the following shapes for features:Running the pipeline, I get these shapes:
It looks like power is [M,N,P] and coherence is [N,N,M,P]. @neil-gallagher , are the docs wrong here? Or should coherence be reshaped?