<div dir="ltr"><div><div>Hello Alex,<br><br></div>Unfortunately it doesn&#39;t. I had already checked it, but all it says is &quot;<span class="">The spectral densities can be estimated using</span><span class=""> ... a continuous wavelet transform using</span>
      
      
        
        <span class="">Morlet wavelets.&quot; Using njobs=1, the calculation of the spectrum density is in _epoch_spectral_connectivity (which is called on line 975) and more specifically here:<br><br><a href="https://github.com/mne-tools/mne-python/blob/master/mne/connectivity/spectral.py#L370">https://github.com/mne-tools/mne-python/blob/master/mne/connectivity/spectral.py#L370</a><br><br></span></div><div><span class="">My data is an stc so I think the code goes into &quot;</span><span class="">if</span> <span class="">isinstance</span>(this_data, _BaseSourceEstimate):&quot;, but when the &quot;partial&quot; function is called, it gets a little blurry.<br><br></div><div>Thanks,<br></div><div>Christos<br></div><span class=""></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 4:05 PM, Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi Christos,<br>
<br>
does the doc of the function helps?<br>
<br>
<a href="https://github.com/mne-tools/mne-python/blob/master/mne/connectivity/spectral.py#L515" target="_blank">https://github.com/mne-tools/mne-python/blob/master/mne/connectivity/spectral.py#L515</a><br>
<br>
Alex<br>
<div><div class="h5"><br>
On Wed, Jun 10, 2015 at 10:12 AM, Christos Michas &lt;<a href="mailto:cmichas@bu.edu">cmichas@bu.edu</a>&gt; wrote:<br>
&gt; Dear MNE-ers,<br>
&gt;<br>
&gt; I used the function mne.connectivity.spectral_connectivity to compute the<br>
&gt; coherence of my stcs using wavelet transform. Now I am trying to interpret<br>
&gt; the results I got and to do so, I want to first verify what formula is used<br>
&gt; by MNE to compute the coherence. Suppose we have two signals x(t) and y(t)<br>
&gt; and that the wavelet transform is using a wavelet w(t)=w_m((t-b)/a) where a<br>
&gt; is the scaling parameter, b the time offset parameter and w_m the mother<br>
&gt; wavelet. What will the cross-spectral density of x and y be? Is it<br>
&gt;<br>
&gt; S_xy(a,b) = {w(t)[ {x(τ)y(t+τ)dτ ]dt<br>
&gt;<br>
&gt; Sorry for the awkward notation, suppose { is an integral and _ is a<br>
&gt; subscript...<br>
&gt; Thank you very much for your help.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Christos<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt; e-mail<br>
&gt; contains patient information, please contact the Partners Compliance<br>
&gt; HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt; error<br>
&gt; but does not contain patient information, please contact the sender and<br>
&gt; properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div><br></div>