# cross\_spectral\_density\_matrix

**URL:** <https://mne.discourse.group/t/cross-spectral-density-matrix/2369>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [November 4, 2020, 3:21pm UTC](https://mne.discourse.group/t/cross-spectral-density-matrix/2369 "2020-11-04T15:21:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 4, 2020, 3:21pm UTC](https://mne.discourse.group/t/cross-spectral-density-matrix/2369/1 "2020-11-04T15:21:50Z")

</div>

External Email - Use Caution

Dear MNE team,

I needed to implement a csd estimation that return the single trials data.  
For creating the common filter I used the pooled data (avg csd) but then I  
apply the filter to single condition (with single trials). Keeping single  
trials allow me to have a first level statistic condition vs baseline.

To do that:  
- I don 't allow the function to average the csd at the end and I keep the  
trials as second dimension ( for the function this work treating them as  
different frequencies bin)  
-I apply the filter at each trials, now the function instead of applying  
the filter at each frequency it does it at each trials

I get a source power n vertices x n trials which is what I need, people  
more experienced with the beamforming do they see any issue with this  
approach ? In few words I used the same function csd\_morlet and  
apply\_dics\_csd but instead of the second dimension frequency I put trials.

Thanks you  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201104/c35037c8/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201104/c35037c8/attachment.html)
